rn-device-orientation
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i rn-device-orientation

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

25.3 kB

Total Files

30

Last publish

Collaborators

  • luisreis86