React Native 停留在旧版应用 [英] React native is stuck at old version app
本文介绍了React Native 停留在旧版应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我运行 react-native run-android 时,它只会在模拟器中安装旧版本的应用程序,并且不会显示更改.
When I run react-native run-android it only installs the old version of the app in simulator and changes are not shown.
感谢任何建议.
推荐答案
似乎我们每次编译到 android 应用程序时都必须重新捆绑资产.这对我有用:
Seems like we have to re-bundle assets every time we compile it to android app. This worked for me:
首先运行这个:
First run this:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
那么:
Then this:
react-native run-android
这篇关于React Native 停留在旧版应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文