You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ios: getting error with modal window: Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorate] is returning YES
#246
I am getting following error when calling Orientation.lockToLandscape(); Any Solution?
Error:
Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorate] is returning YES
I found root cause of this issue. This is happening with modal window. My image view opening in the Modal Window and when I am changing from Portrait to landscape getting this error. Any solution?
vijay-dadhich09
changed the title
ios: getting error: Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorate] is returning YES
ios: getting error with modal window: Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorate] is returning YES
Nov 28, 2017
I am getting following error when calling Orientation.lockToLandscape(); Any Solution?
Error:
Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorate] is returning YES
Code:
componentDidMount() {
const initial = Orientation.getInitialOrientation();
Orientation.unlockAllOrientations();
if (initial === 'PORTRAIT') {
console.log('Prtrate: ', initial);
Orientation.lockToLandscape();
} else {
console.log('landscape: ', initial);
}
}
The text was updated successfully, but these errors were encountered: