代码拉取完成,页面将自动刷新
$ npm install react-native-ali-onepass --save
$ yarn add react-native-ali-onepass
$ react-native link react-native-ali-onepass
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-ali-onepass
and add RNAliOnepass.xcodeproj
libRNAliOnepass.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNAliOnepassPackage;
to the imports at the top of the filenew RNAliOnepassPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-ali-onepass'
project(':react-native-ali-onepass').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-ali-onepass/android')
android/app/build.gradle
:
compile project(':react-native-ali-onepass')
android/app/build.gradle
:
repositories {
flatDir {
dirs 'libs', '../../node_modules/react-native-ali-onepass/android/libs'
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。