React Native Expo Screen Orientation

Letting Expo Handle the Screen Orientation

Delete the default orientaion in the app.json

“expo”: {
“name”: “project”,
“slug”: “project”,
“version”: “1.0.0”,
“orientation”: “portrait”, //Delete this line
“icon”: “./assets/icon.png”,
“splash”: {
},

and install

 expo install expo-screen-orientation 

then add below lines to handle orientation.

"plugins": [
  [
    "expo-screen-orientation",
    {
      "initialOrientation": "DEFAULT"
    }
  ]
],