1.0.5 • Published 4 years ago

rn-sensors v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago