Source : Disable Screen Rotation Landscape Mode in Android React Native
This tutorial explains how to disable screen rotation landscape mode in android react native application. There are two different types of orientation in android device, Portrait mode and Landscape mode. Portrait mode is default mode in mobile devices and if we rotate the device it turns into Landscape mode.But While making an application we normally design for the Portrait mode and let the system manage in Landscape mode (You can manage both) but in some cases, we don’t want the system to change the orientation while the user is using our App.
But in some case developer wants to disable the Landscape Mode screen rotation in android mobile device, in that case you need to follow the below steps in your react native project.
Top comments (0)