Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is expo not refreshing when i save changes?

When I make changes and save them, the app in my emulator is not being refreshed; the emulator is not connected to the metro server I think.

I tried to clear cache by running expo -r -c, but this didn't do any thing.

like image 301
Patrick Iradukunda Avatar asked Jul 04 '20 17:07

Patrick Iradukunda


3 Answers

Did you try to enable the fast refreshing? I was having the same issue, but after I enable the "Fast Refresh" the auto refreshing started working again. To enable the fast refresh you just have to shake your smartphone and tap on "Enable Fast Refresh".

like image 62
David Carmo Avatar answered Nov 20 '22 21:11

David Carmo


If the above solution won't work(Shake or refresh the entire Expo server) another 2 alternative are :

First option:

While being in the project directory where server is running Press:

 r  

│ --> it will reload the app

2 Option: Go to your device Settings find Expo Go and force stop then reopen it

like image 5
Carmine Tambascia Avatar answered Nov 20 '22 22:11

Carmine Tambascia


did you try to rerun npm? npm add expo . and then run it as npm start .

like image 3
0xA Avatar answered Nov 20 '22 20:11

0xA