React Native打包后运行闪退

错误原因1:将原本是JPG的图片强制改成PNG扩展名。

reactnative bundle platform android dev false entryfile index.js bundleoutput android/app/src/main/assets/index.android.bundle assetsdest android/app/src/main/res/

 

错误原因2: DrawerNavigator.js本身的错误

https://github.com/aksonov/react-native-router-flux/issues/3124

sed -i -e 's/TabRouter/tabRouter/g' node_modules/react-navigation/src/navigators/DrawerNavigator.js
sed -i -e 's/\/routers\/tabRouter/\/routers\/TabRouter/g' node_modules/react-navigation/src/navigators/DrawerNavigator.js


发表评论

邮箱地址不会被公开。