1.2.2 • Published 1 year ago
react-native-amap-geolocation v1.2.2
react-native-amap-geolocation
注意:该项目目前只维护,不加新功能。
React Native 高德地图定位模块,支持 Android + iOS,提供尽可能完善的原生接口, 同时提供符合 Web 标准的 Geolocation API。
用法
import { PermissionsAndroid } from "react-native";
import { init, Geolocation } from "react-native-amap-geolocation";
await PermissionsAndroid.requestMultiple([
PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION,
PermissionsAndroid.PERMISSIONS.ACCESS_COARSE_LOCATION,
]);
await init({
ios: "9bd6c82e77583020a73ef1af59d0c759",
android: "043b24fe18785f33c491705ffe5b6935",
});
Geolocation.getCurrentPosition(({ coords }) => {
console.log(coords);
});
文档
1.2.2
1 year ago
1.2.1
1 year ago
1.2.0
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.1
4 years ago
1.1.2
4 years ago
1.1.0
4 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.3.3-0
5 years ago
0.3.3-beta
5 years ago
0.3.2
6 years ago
0.3.1
6 years ago
0.3.0
6 years ago
0.2.1
6 years ago
0.2.0
6 years ago
0.1.0
6 years ago
0.0.1
6 years ago
0.0.0
6 years ago