react-native-gps
Native GPS location support for React Native for Android and IOS. Was inspired in project of timfpark and syarul
Installation
Pending: not released yet
Location Usage
var React = ;var DeviceEventEmitter = React; var RNLocation: Location = ; Location; var subscription = DeviceEventEmitter;
Methods
To access the methods, you need import the react-native-location
module. This is done through var Beacons = require('react-native-location')
.
Location.requestWhenInUseAuthorization
Location;
This method should be called before anything else. It requests location updates while the application is open. If the application is in the background, you will not get location updates.
Location.startUpdatingLocation
Location;var subscription = DeviceEventEmitter;
License
MIT, for more information see LICENSE