Issue
I'm trying to run My react-native application, I'm running it on android emulator and my phone HUAWEI Y3II and same thing happens.
I was working on it fine a few days ago but suddenly this error keeps coming up:
Could not load exp://*myip*:19000 network response timed out
Fetching the user profile failed
connect ETIMEDOUT 104.197.216.164:443
aTrying to open the project on Android...
Opening on Android device
I tried setting the environment variable REACT_NATIVE_PACKAGER_HOSTNAME to my ip address, I tried turning off the firewall, I ensured that the ports are allowed in the firewall, I tried changing my network from public to private. Here is my package.json file:
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "^35.0.0",
"react": "16.8.3",
"react-dom": "16.8.3",
"react-native": "file:../../../../Users/RiggedToBlow/Downloads/Compressed/react-native-sdk-35.0.0.tar.gz",
"react-native-gesture-handler": "~1.3.0",
"react-native-reanimated": "~1.2.0",
"react-native-web": "^0.11.7",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^1.9.4"
},
"devDependencies": {
"babel-preset-expo": "^7.0.0"
},
"private": true
}
I really need to work on this please help
Solution
Just go to wifi setting Click on your WIFI name And enable Make this pc discoverable Good luck
Answered By - Sadegh Rahimi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.