Name Last Update
android Loading commit data...
ios Loading commit data...
src Loading commit data...
.buckconfig Loading commit data...
.flowconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.watchmanconfig Loading commit data...
README.md Loading commit data...
app.json Loading commit data...
babel.config.js Loading commit data...
index.android.js Loading commit data...
index.ios.js Loading commit data...
metro.config.js Loading commit data...
package.json Loading commit data...
yarn.lock Loading commit data...

README.md

1.打包方式:采用rn和原生分别打包 // 首先在根目录执行rn打包脚本命令 React-native bundle --entry-file index.android.js --bundle-output ./android/app/src/main/assets/index.android.bundle --platform android --assets-dest ./android/app/src/main/res/ --dev false // 然后在android目录打包android原生工程 ./gradlew assembleRelease

2.react-native-scrollable-tab-view打包 SceneComponent.js 报错, 是这行代码里多个逗号const {shouldUpdated, ...props, } = Props; 去除即可,

3.Android打Release包失败,更改Android所有RN依赖的build.gradle中版本 与Android/app/build.gradle的版本号一致即可

例如:react-native-image-picker compileSdkVersion 28 buildToolsVersion "28.0.3" defaultConfig { minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName computeVersionName() }