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

1.0.5 • Public • Published

Supported React Native Versions

React Native >= 0.40

Documentation

Installation

yarn add rn-sensors 
cd ios && pod install && cd ..

Usage

import { getData, startUpdates, stopUpdates } from 'rn-sensors'

useEffect(() =>{
  startUpdates()
  
  return () => stopUpdates()
},[])

//when you want to obtain data from the sensors.
getData((error, result) => console.log('result', result))

Credits

This project is inspired by the react-native-sensors

Package Sidebar

Install

npm i rn-sensors

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

24.7 kB

Total Files

22

Last publish

Collaborators

  • emibotti
  • rlavistad
  • nicoher
  • mlorenzo
  • xmartlabs-admin