Check out example codes for "how to fix portrait orientation for android apps". It will help you in understanding the concepts better.

Code Example 1

            android:screenOrientation="portrait" >

<!-- Do this in AndroidMainifest.xml-->

<!--Additionaly, you can also use screenOrientation="sensorPortrait" 
if you want to enable rotation by 180 degrees.-->

This will lead to forcing your app to portrait on most phones
and landscape on tablets. -->

Learn ReactJs, React Native from