You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Okie doke. I took a quick look at the required changes and I agree it seems like high effort to refactor things to align with react-native, which is unfortunate.
Here's some related issues where this change was previously discussed:
The problem
The return type of RNW
StyleSheet.create
is incompatible with RNStyleSheet.create
. This causes problems in css libraries where RN is aliased to RNW via https://www.npmjs.com/package/babel-plugin-react-native-web.RNW implementation:
react-native-web/packages/react-native-web/src/exports/StyleSheet/StyleSheet.js
Lines 47 to 57 in 13f7b9e
RN implementation:
https://github.com/facebook/react-native/blob/36318b6776507ba31070f6c8a3493609238a1a98/Libraries/StyleSheet/StyleSheet.js#L359-L371
How to reproduce
Simplified test case: Not sure if this is useful: https://codesandbox.io/s/async-bush-kfpgo?file=/src/App.js
Expected behavior
I expect the return type to match RN.
Environment (include versions). Did this work in previous versions?
Additional context
The text was updated successfully, but these errors were encountered: