In React Native applications, monitor changes in device orientation and programmatically set the preferred orientation for each screen. works on iOS and Android.
Installation
$npminstallreact-native-fast-orientation—save
Usage
Use the Orientation module in your codebase if you want to use the react-native-fast-orientation package :