Respecting user screen orientation lock


#1

Hi,

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.

https://www.wikihow.com/images/thumb/3/35/Lock-Screen-Orientation-on-Android-Step-2.jpg/aid9807580-v4-728px-Lock-Screen-Orientation-on-Android-Step-2.jpg.webp

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