MoBaiYuHei
MoBaiYuHei

Reputation: 21

react-native modify index.android.js no change

When I first init a react-native project ,I can see new app running in my Android emulator.But when open "index.android.js" in my text editor of choice and edit some lines, select Reload from the Developer Menu .But i can't see any change.When I shut up the server and restart it ,I can see the change. why?

Upvotes: 2

Views: 409

Answers (1)

amresh thakur
amresh thakur

Reputation: 81

The Same issue was coming in my project because server was shut down. so do not shut down your server while you are making some changes.if you shut down the server again use this command to rebuild and run: cd android && gradlew and then

cd .. && react-native run-android

Upvotes: 4

Related Questions