Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native prevent rotation of screen

If building your React Native apps with Expo then you can use the orientation field in your app.json file - for example:

{
  "expo": {
    "name": "My app",
    "slug": "my-app",
    "sdkVersion": "21.0.0",
    "privacy": "public",
    "orientation": "portrait"
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #prevent #rotation #screen
ADD COMMENT
Topic
Name
4+1 =