* Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [RCCTabBarController shouldAutorotate] is returning YES'
* First throw call stack:
What problem?
please help me
Same issue here.
Can you allow both portrait and landscape but still lock it on only one of them ?
I'm having the same issue. Did anyone find a solution?
Hey @andyesp, my workaround was create a timeout before lockToLandscape, Something like this
setTimeout(function(){ Orientation.lockToLandscape(); }, 100)
I am using a component with webview and setTimeout did not solve =/
Got the same error.
There is my analysis (I know nothing on iOS native development, so this is mainly trial/error, code reading and logic) :
supportedInterfaceOrientationsForWindow returns now 'Landscape'.Supported orientations has no common orientation with the application[RCCTabBarController shouldAutorotate] is returning YESAs a workaround, I edit my controller.
return YES by return [Orientation getOrientation] == UIInterfaceOrientationMaskAllButUpsideDown+1
I got this error while using a Modal and the solution at https://github.com/yamill/react-native-orientation/issues/246#issuecomment-347427696 fixed it for me.
I got this error while using a
Modaland the solution at #246 (comment) fixed it for me.
Thanks. Error with modal for me.
Most helpful comment
I got this error while using a
Modaland the solution at https://github.com/yamill/react-native-orientation/issues/246#issuecomment-347427696 fixed it for me.