Respecting user screen orientation lock


I have been using ScreenOrientation to lock the screen orientation at runtime with success.
However, I noticed it didn’t take into consideration the native orientation lock of the device on Android. I haven’t tested it on iOS yet.

For example, using Expo.ScreenOrientation.allow(Expo.ScreenOrientation.Orientation.ALL_BUT_UPSIDE_DOWN) allows the application to be displayed in landscape mode even if the native orientation setting is locked to portrait.

Is there a way to achieve this ?

Thank you

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.