Screen.Orientation.lockAsync not working for iPad

  1. SDK Version: 35
  2. 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.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.