react native portrait only code example
Example: 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