Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio emulator hot reload for react-native

I'm running a react-native app in an Android emulator through Android Studio. I want to redeploy code changes fast. Is there some way to force a hot reload into the emulator? Here's what I've tried so far:

  • Double tap r usually works. If a text field is selected, it doesn't work (it just types rr). I haven't found any ways to deselect a text field without selecting another text field.
  • The run app button in IDE doesn't work when modifying .js files. Android Studio does not recognize the .js files as part of the project, so it doesn't detect changes and refuses to hot reload the emulator. I've imported the project according to the instructions in react-native docs and I've also tried various other ways of setting up the project. It just won't recognize anything beyond the "android" directory.
like image 778
Atte Juvonen Avatar asked May 06 '26 05:05

Atte Juvonen


1 Answers

Try to use command + M or command + D

Ide choice depending on personal habits, recommend vscode.

like image 101
舒文颉 Avatar answered May 08 '26 20:05

舒文颉



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!