title: react-native-amap-geolocation
tags:
npm i react-native-amap-geolocation
include ':react-native-amap-geolocation'
project(':react-native-amap-geolocation').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-amap-geolocation/lib/android')
dependencies {
implementation project(':react-native-amap-geolocation') // 定位
}
import cn.qiuxiang.react.geolocation.AMapGeolocationPackage;
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
····················
packages.add(new AMapGeolocationPackage());
return packages;
}
https://blog.csdn.net/u011149565/article/details/90216803
https://www.jianshu.com/p/dcfca6041154