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