转载请注明地址:http://blog.csdn.net/sinat_37059404/article/details/73330041
github官网地址:
https://github.com/lovebing/react-native-baidu-map
下载方式:
npm install react-native-baidu-map --save
插件使用过程中需要配置的内容:
1,在项目的 android/settings.gradle目录 下添加:
include ':app'
include ':react-native-baidu-map'
project(':react-native-baidu-map').projectDir = new File(settingsDir, '../node_modules/react-native-baidu-map/android')
2, 在android/app/build.gradle 中添加:
dependencies {
compile project(':react-native-baidu-map') // 添加的一行
compile fileTree(dir