Please provide the following:
- SDK Version: 39.0
- Platforms(Android/iOS/web/all): iOS (All?)
I’m using expo’s screen orientation module to try and control the orientation of my application. The problem I’m facing is that ScreenOrientation does not provide a way to actually rotate the application to the desired orientation without having the user also rotate the device, instead
.lockAsync only makes the orientation stay locked at the given orientation if the user rotates the device to that orientation in the first place:
If the orientation is already set to landscape, the above code will not rotate the orientation to portrait up on iOS. Instead, it only locks the orientation to portrait up if the user rotates the device to portrait up first. If the user does not rotate the device, the orientation stays in landscape. How do I force the application to change to the given orientation without requiring the user to first rotate their device that way? Is the only way to have the user rotate the device to that orientation?