Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 652 Bytes

readme.md

File metadata and controls

22 lines (17 loc) · 652 Bytes

react-native-amap-geolocation npm version

React Native geolocation module for Android + iOS.

Install

npm i react-native-amap-geolocation
react-native link react-native-amap-geolocation

Usage

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

await Geolocation.init("043b24fe18785f33c491705ffe5b6935")
Geolocation.setOptions({ interval: 2000 })
Geolocation.addLocationListener(location => console.log(location))
Geolocation.start()