react-native-navigation
react-native-navigation copied to clipboard
[Android] - Cannot set app orientation to portrait after installing RNN
Orientation issue in Android
I create project and using latest version of react native navigation. The issue is app doesn't lock with orientation. layout object in default options seems doesn't work.
Expected behavior
Application should be locked with portrait (if required) either device auto rotate feature is enabled or not.
Actual Behavior
I force restrict to app, orientation should be portrait. But it is going on landscape as well when i rotate the device
Your Environment
- React Native Navigation version: 7.11.2
- React Native version: 0.63.3
- Platform(s) (iOS, Android, or both?): Both
- Device info (Simulator/Device? OS version? Debug/Release?): Huawei Nova 3i OS: 9
Reproducible Demo
There is my code
Navigation.setDefaultOptions({
layout: {
orientation: ['portrait'],
componentBackgroundColor: 'rgb(248, 249, 255)',
},
sideMenu: {
openGestureMode: 'bezel',
},
});
any updates on this one ?