Please provide the following:
ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT); does not work when Modal from ‘react-native’ is visible. The app was in landscape, but when Modal opens, the app instantly turn back to portrait.
I see same issue. If my app is in landscape and I tap on a modal the entire app switches to portrait and modal opens.
You should use the supportedOrientations prop - Modal · React Native
supportedOrientations
if using react-native-elements add this:
react-native-elements
supportedOrientations={['portrait', 'landscape']}
see here for more details.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.