Skip to content

[Web only] Safari version 16.3 and below not supported #1073

@emilhaugberg

Description

@emilhaugberg

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.

Image Image

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions