Gets the device's orientation through sensors even if the interface is locked in portrait or landscape mode
npm install rn-device-orientation
npm cd ios && pod install && cd ..
import { useDeviceOrientation } from 'rn-device-orientation';
// ...
const orientation = useDeviceOrientation();
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library