7

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

martinarroyo
  • 9,389
  • 3
  • 38
  • 75
Yash
  • 271
  • 2
  • 5
  • 7

1 Answers1

6

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.

Community
  • 1
  • 1
martinarroyo
  • 9,389
  • 3
  • 38
  • 75
  • Thank you will try that. Also do you have any idea about how to open Developers menu in Android studio emulator. I wanted to switch on to Hot reloding. But by pressing F2 my menu does not pop up. – Yash Dec 27 '16 at 19:14
  • 1
    Try Ctrl+m or in your console, `adb shell input keyevent 82` – martinarroyo Dec 27 '16 at 19:15