Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native portrait only

// add this in your manifest.xml 

<activity
        android:name=".MainActivity"
		<...other code>
        android:configChanges="orientation"    //<--ADD THIS
        android:screenOrientation="portrait">  //<--ADD THIS
 
PREVIOUS NEXT
Tagged: #react #native #portrait
ADD COMMENT
Topic
Name
7+8 =