- SDK Version: 35
- Platforms(Android/iOS/web/all): iOS
Like the title says, I’m having trouble getting ScreenOrientation.lockAsync to work with the iPad (I’ve tested several version on simulator as well as on physical devices).
Running this:
ScreenOrientation.getOrientationAsync().then(oriInfo => console.log('screen is currently oriented: '+oriInfo.orientation));
returns an oriInfo.orientation of ‘UNKNOWN’. Is this normal? Has anyone else been able to get the screen orientation to lock on an iPad?
I made an expo snack to test this for an iPhone and ScreenOrientation works as expected.