Please provide the following:
- SDK Version: 37
- Platforms(Android/iOS/web/all): IOS (iPhone XR) (Works fine on Android)
In my app I have screen that the user can enable ‘full screen mode’, which is portrait by default but should change to landscape (left or right) when the user tilts their screen.
I was able to achieve this with SDK 35 using
OrientationLock.ALL_BUT_UPSIDE_DOWN) but it seems this has been removed in SDK 37.
I’ve tried using
ScreenOrientation.OrientationLock.ALL) but I get the following error:
Error: This device does not support the requested orientation 1
As an attempted work around I’ve tried the following code but nothing happens when I tilt my screen:
I would appreciate if somebody from the Expo team could guide me on this.