React Native geolocation module for Android + iOS.
npm i react-native-amap-geolocation
react-native link react-native-amap-geolocation
import { Geolocation } from "react-native-amap-geolocation"
await Geolocation.init("043b24fe18785f33c491705ffe5b6935")
Geolocation.setOptions({ interval: 2000 })
Geolocation.addLocationListener(location => console.log(location))
Geolocation.start()