Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

react-native run-android and react-native start

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

like image 384
Yash Avatar asked Dec 27 '16 18:12

Yash


1 Answers

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.

like image 69
martinarroyo Avatar answered Nov 11 '22 04:11

martinarroyo