I'm having a problem with my expo app. It repently doesn't take my changes. Live reload, Hot reload doesn't work, and when I shake my device and press "reload", my app reload, but the changes doesn't appear.
What I already did:
- reinstall watchman
- delete
node_modules
andpackage-lock.json
, and run$ npm install
- clone and rebuild my project in other place
- update expo-cli and expo-android-app
[I'm using elementary os (linux), expo-cli and android device]
Did something similar happen to someone? How did you resolve it?
my project dependencies:
"dependencies": {
"@expo/samples": "2.1.1",
"@expo/vector-icons": "^6.3.1",
"expo": "^25.0.0",
"firebase": "^4.12.1",
"native-base": "^2.3.10",
"react": "16.2.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-25.0.0.tar.gz",
"react-navigation": "^1.0.0-beta.27"
"magically resolved" deleting
node_modules
folder and running$ npm install
(AGAIN) and running... (?)Something similar to this happened to me while running expo on a windows machine and an iPhone 6S. I was able to get it to "reload" the code by creating an empty expo folder (expo init ReloadProject), going into and restarting the expo client there (expo start).
After accessing it with my phone (and seeing the default app message), and going back into my original project I was able to start expo again with the newer version of the code and see it on the phone working properly.
Aside from this, I also tried reverting code changes, removing node_modules and re-installing, restarting the computer and app on phone, manually clicking reload, trying hot reload and live reload but none of those approaches worked.
I have solved my issue by connecting my Windows laptop to wifi (same as Android device) instead of wired connection.
Despite the fact that wifi and wired network are on the same LAN an everything else worked well.
I experienced the same problem .I noted that I had switched my app from development to production then back to development .
The problem is that cache was still working on production when I switched to development in the last step .
The log in my console was :
Take note of the
__DEV__ === false
So I cleared cache in the console using
SHIFT+R
Then went to my phone and cleared Expo app`s cacheThen restarted my development server , and everything flowed fine !
The log
__DEV__ === false
changed to__DEV__ === true
, and expo-reloading problems went away !