react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

[Android] - Cannot set app orientation to portrait after installing RNN

Open atifaziz1 opened this issue 4 years ago • 1 comments

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',
    },
  });

atifaziz1 avatar Mar 22 '21 08:03 atifaziz1

any updates on this one ?

flexsurfer avatar Nov 30 '21 06:11 flexsurfer