@arlenwang/react-native-mbaichuan
v4.3.7
Published
react-native library for Ali Baichuan
Downloads
5
Maintainers
Readme
百川SDK-Android接入文档 https://baichuan.taobao.com/docs/doc.htm?spm=a3c0d.7629140.0.0.3517be48JAfb5d&treeId=129&articleId=118400&docType=1 百川SDK-iOS接入文档 https://baichuan.taobao.com/docs/doc.htm?spm=a3c0d.7629140.0.0.4d21be48bBA52j&treeId=129&articleId=118399&docType=1
react-native-mbaichuan
注意点
| 版本 | 版本 | 文档 | | :-----------------: | :---: | :---: | | react-native < 0.60 | 3.0.2 | 点击 |
开始
$ npm install react-native-mbaichuan --save
iOS
打开ios/Podfile
文件,添加以下(百川仓库)
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
·······
source 'https://github.com/CocoaPods/Specs.git'
source 'http://repo.baichuan-ios.taobao.com/baichuanSDK/AliBCSpecs.git'
·······
target
Android
打开android/bulid.gradle
,添加以下仓库
······
allprojects {
repositories {
·····
maven {
url "http://repo.baichuan-android.taobao.com/content/groups/BaichuanRepositories/"
}
}
}
······
其他配置
iOS
- 把
yw_1222.jpg
重命名为yw_1222_baichuan.jpg
拖入到项目中 URL Schemes
添加tbopen + 百川APPID
LSApplicationQueriesSchemes
添加tmall
、tbopen
Android
- 复制百川安全图片
yw_1222.jpg
到android/app/src/main/res/drawable/yw_1222.jpg
使用方法
详见examples目录