-
-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
What happened?
React native unistyles is not supported on Safari versions below 16.4. This is likely due to usage of screen.orientation in runtime.ts, which only has support from 16.4 and onwards (https://caniuse.com/screen-orientation).
When opening a page using react native unistyles in safari 16.3 or below, you'll be met with a blank page and no error being thrown. It seems to silently fail.
I'm happy to take a look if this is something you'd want to support.
Steps to Reproduce
Open a web page using react native unistyles (for example the repro repo) in a simulator using safari 16.3 or below. This will produce just a blank page and no errors in the console.
Snack or Repository Link (Optional)
https://github.com/emilhaugberg/react-native-unistyles-safari-16-repro/tree/main
Unistyles Version
3
React Native Version
0.83.1
Platforms
Web
Expo
None
Additional information
- I use recommended version of
react-native-nitro-modulescompatibility table - I've searched for similar issues in this repository and found none
- I double-checked that my issue was not covered in documentation
Reactions are currently unavailable