/ Location

React Native geolocation module for Android + iOS

React Native geolocation module for Android + iOS

react-native-amap-geolocation

React Native geolocation module for Android + iOS.

react-native-amap-geolocation

Usage

import { Geolocation } from "react-native-amap-geolocation"

await Geolocation.init({
  ios: "9bd6c82e77583020a73ef1af59d0c759",
  android: "043b24fe18785f33c491705ffe5b6935"
})

Geolocation.setOptions({
  interval: 8000,
  distanceFilter: 20
})

Geolocation.addLocationListener(location => console.log(location))
Geolocation.start()

GitHub