Search
 
SCRIPT & CODE EXAMPLE
 

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"
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: Deploying Node.js Apps on Heroku 
Javascript :: stopwatch with javascript 
Javascript :: closures in javascript 
Javascript :: javascript date double digit month 
Javascript :: reactjs firebase timestamp to date 
Javascript :: element remove class 
Javascript :: how to install chalk in node js 
Javascript :: math power javascript 
Javascript :: how to assert in javascript 
Javascript :: js how to convert vh to pixel 
Javascript :: javascript connect metamask 
Javascript :: get element with data attribute javascript 
Javascript :: vue axios post return json data 
Javascript :: add google analytics to react 
Javascript :: datepicker min max date 
Javascript :: printing in a single line in javascript 
Javascript :: Duplicate empty header occur in datatable when enabling scrollX or scrollY when using Google Chrome 
Javascript :: for loop javascript 
Javascript :: palindrome javascript 
Javascript :: Missing script: "start" react 
Javascript :: use $ instead of jQuery 
Javascript :: convert namednodemap to object 
Javascript :: javascript add days 
Javascript :: logic operators in javascript 
Javascript :: sliding window algorithm javascript 
Javascript :: how to enable emit on react in vs code 
Javascript :: how to set default value in input field in angularjs 
Javascript :: how to export module in node js 
Javascript :: react native refresh flatlist on swipe down 
Javascript :: express starting code 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =