open-index/open-npm huggingface dataset:
npm package: @jerrychoux/react-native-amap-geolocation
Description: ## Getting started
Latest version: 1.0.0


# @heytea/native-amap-geolocation

## Getting started

`$ npm install @heytea/react-native-amap-geolocation --save`

或者直接在package.json中添加

`"@heytea/react-native-amap-geolocation": "git+https://github.com/heytea/react-native-amap-geolocation.git"`

## Android

在Manifest.xml文件中添加

```xml
<application>
    <meta-data
        android:name="com.amap.api.v2.apikey"
        android:value="高德地图App key" />

    <service android:name="com.amap.api.location.APSService"></service>
</application>
```

声明以下权限：

```xml
<!--用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<!--用于访问GPS定位-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
<!--用于获取运营商信息，用于支持提供运营商信息相关的接口-->
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission>
<!--用于访问wifi网络信息，wifi信息会用于进行网络定位-->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<!--用于获取wifi的获取权限，wifi信息会用来进行网络定位-->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<!--用于访问网络，网络定位需要上网-->
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<!--用于读取手机当前的状态-->
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<!--用于写入缓存数据到扩展存储卡-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission>
<!--用于申请调用A-GPS模块-->
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"></uses-permission>
```