react-native-orientation-locker
react-native-orientation-locker copied to clipboard
[iOS] Tablet is still able to rotate during lockToPortrait
When I call OrientationLocker.lockToPortrait() in the index.js iPhone and android have no issues locking but tablet will still be able to rotate.
Do iPad tablets not have support?
This issue happens when you check the following boxes
It also goes away when you only have these boxes checked
I am also experiencing this. However, I can't do what @FrederickEngelhardt suggests, because my use case is that I want tablets locked to landscape, but phones locked to portrait.
EDIT: I have updated the library to the latest on master, and followed the necessary steps in configuration. After that, it is working as expected.
I'm getting the same problem. I need landscape on Ipad and portrait on iphone. @Andrea-Arguello have you found a solution?
@FrederickEngelhardt I can't do that, Apple reject my my app submission because my first upload include Ipad support.I must have both Landscape Left/ Landscape Right selected.
@co2nut Me, toooo. I need to lock to portrait but to do that, the check box should be released for landscape which makes my app upload unable.
Any solution?
@co2nut same issue here
any news?
any update?
Any update or has anyone identified the issue, so we can make an iPad patch until fixed and released?
https://github.com/wonday/react-native-orientation-locker/issues/8#issuecomment-365595332
For iPads the UIRequiresFullScreen
flag needs to be set in order for the supportedInterfaceOrientationsForWindow
-method (used by this package) to get called: https://stackoverflow.com/questions/35274428/supportedinterfaceorientations-not-called-in-ipad
Caveat: Setting this flag disabled multitasking support on iPad.