0.2.0 • Published 1 year ago
atlet-sensors-library v0.2.0
atlet-sensors-library
Module for interacting with built-in sensors
Installation
npm install atlet-sensors-library
Usage
import { Accelerometer } from 'atlet-sensors-library';
// ...
const eventEmitter = new NativeEventEmitter(Accelerometer);
const eventListener = eventEmitter.addListener('accelerometer', (event) => {
console.log(event);
});
// ...
Accelerometer.removeListeners(1);
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