react-native run-android and react-native start

霸气de小男生 提交于 2019-12-23 15:12:47

问题


Do I have to run react-native run-android and react-native start in my command prompt every time time I reopen my project and emulator?

-- Thanks


回答1:


You usually do. The react-native run-android command might be optional if you do not want to deploy the android native code again (for instance, if you have not made any changes). You will have to launch the application manually and it will try to connect to the packager that starts with react-native start. I am not sure if you can bundle the JS for offline use in debug mode. Maybe you can try the same procedure as in this answer, but with assembleDebug in order to avoid that one.



来源:https://stackoverflow.com/questions/41350660/react-native-run-android-and-react-native-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!