4.3.7 • Published 3 years ago
@arlenwang/react-native-mbaichuan v4.3.7
百川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'
·······
targetAndroid
打开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 + 百川APPIDLSApplicationQueriesSchemes添加tmall、tbopen
Android
- 复制百川安全图片
yw_1222.jpg到android/app/src/main/res/drawable/yw_1222.jpg
使用方法
详见examples目录