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 ?