React-native-orientation: Exception thrown while executing UI block: Supported orientations has no common orientation with the application

Created on 1 Nov 2017  路  1Comment  路  Source: yamill/react-native-orientation

I called lockToLandscapeRight锛宎nd the orientation has changed successfully. But if the modal is shown, it will thrown the following error:

Exception thrown while executing UI block: Supported orientations has no common orientation with the application, and [RCTModalHostViewController shouldAutorotate] is returning YES

react-native: 0.48.2
react-native-orientation: 3.1.0

Most helpful comment

Solved by add property supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']} to modal.

>All comments

Solved by add property supportedOrientations={['portrait', 'landscape', 'landscape-left', 'landscape-right']} to modal.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AmmiWang picture AmmiWang  路  3Comments

magicspon picture magicspon  路  7Comments

Mactub07 picture Mactub07  路  7Comments

balmasich picture balmasich  路  6Comments

julesmoretti picture julesmoretti  路  7Comments