I normally do npm start and run on the Android device with QR code. Now all of a sudden I’m getting a blue background screen with the message “Something went wrong” and View Error Log says :
Uncaught Error: java.net.ConnectException: Failed to connect to /192.168.31.231:19000
But the react-native app is working as its loading on the iOS simulator. So what went wrong on my Android’s expo app ?
In FireFox, a URL returning JSON would be shown nicely formatted natively - without using an extension like its required in Chrome. But 192.168.31.231:19000 shows in plain text - without the nicely formatted output. So not sure if this is a expo bug or not.
I just fixed mine. For some odd reason my ip address randomly changed after like 2 years. Double check your local IP address that runs expo. To change it in windows, check out this SO post: React Native Expo change default LAN IP - Stack Overflow
I am not sure if this an expo error or a network issue with the computer. Either way, I am still not able to get this rectified on my device, so I am using iOS simulator.