Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-amap-bridge

Fengtianhe2ISC0.0.2

react native 和 原生高德地图 交互

react, native, amap

readme

复制android目录下的文件至 项目包下

修改文件中的包名

MainApplicationgetPackage中 注册包名 new AmapBridgePackage()

使用

import AmapBridge from 'react-native-amap-bridge'

...

AmapBridge.navByName(startAddress,endAddress)
AmapBridge.navByMine(endLat, endLng, endAddress)   #start = 我的位置
AmapBridge.navByPosition(startLat, startLng, startAddress, endLat, endLng, endAddress)
AmapBridge.isInstallAmap()   #return Promise