react-native-orientation-locker
react-native-orientation-locker copied to clipboard
Orientation not locking on tablet
When turning on device orientation upsidedown in xcode the orientation locking stops working on tablet. Mobile works just fine. I am testing on a tablet simulator iPad Pro (12.9-inch) (4th generation). I need to have this setting enabled to deploy the app to appstoreconnect (Testflight).
Confirmed. I am testing in real devide (iPad), the plugin not show any logs :(
same question, any idea?
Any idea how to get this to work?
Same for me.
same for me, ipad not work
same for me!
and can not uncheck orientation upsidedown because xcode won't build
After deactivating all except Portrait(or whatever you want) in Xcode use Orientation.unlockAllOrientations(); to unlock all Orientations afterwards.
Example:
If QR Code screen in Portrait is my inital orientation and after scanning i want that the user is send to a diffrent screen with the ability to change orientations as they like.
I guess that works.
See #126
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.