react-device-orientation
A react wrapper for device orientation events.
Installation
Using npm:
$ npm install --save react-device-orientation
Using yarn:
$ yarn add react-device-orientation
Example
;; const App = <DeviceOrientation> <div> `Absolute: ` `Alpha: ` `Beta: ` `Gamma: ` </div> </DeviceOrientation>;
Contributing
Please feel free to submit any issues or pull requests.
License
MIT