React-Accelerometer-Field
Allows you to take advantage of the device's accelerometer on a very easy and uncomplicated way. Forked to fix React prop-types and to be deployable on netlify.
Installation
npm install --save react-accelerometer-field// oryarn add react-accelerometer-field
Usage
const AwesomeComponent = <ReactAccelerometer> <ul> <li>x: positionx</li> <li>y: positiony</li> <li>z: positionz</li> <li>rotation alpha: rotationalpha</li> <li>rotation beta: rotationbeta</li> <li>rotation gamma: rotationgamma</li> </ul> </ReactAccelerometer>
License
MIT