I have set up a react native project using create-reacte-native-app.
Problem
I am trying to run the application on my android device using expo app but when i scan the QR code using expo app, i get an error
could not load expo://192.168.8.103:19000. Network response timed out.
Error log displays this error message
Uncaught Error:Java.net.SocketTimedoutException: failed to connect to /192.168.8.103 (port 19000) from /192.168.8.105 (port 38682) after 10000ms
Question
How can i fix this error and run my react native app on android device using expo app?
Try to be on the same network (computer and phone)
and you can try to run it with exp start
Related
i'm new in react native whenever i'm trying to reload the application i'm getting error on my emulator screen i.e could not connect to development server.i'm getting below error. Any help will be appreciated.
Try to open in your device browser the url: http://10.0.2.2:8081/index.delta (if it is responding go to step 2 - even with errors - if not go to 3).
Add the following line to your androidManifest.xml Application tag:
android:usesCleartextTraffic="true", rebuild your native app and test.
In a terminal run this command: adb reverse tcp:8081 tcp:8081
i had this problem too.
follow these steps in order
1.
try deleting your emulator and create a new one
then restart your pc
start react native & run android
if not solved
2.
connect an android phone via USB to your pc
turn on USB Debugging at your phone's setting
now start react native & run android
My react-native app with the expo-cli wont run on my phone. Getting a network time-out error
Today I tried to start my react-native app with the expo-cli on my phone, but when trying to connect to the app using the expo-cli I got a network time out error.
Yesterday everything was working fine and my app was able to run on my phone using the CLI.
I've also tried running my other react-native apps using expo and got the same error message. I rebooted my systeem, my phone and reinstalled the expo app on to my phone.
I've noticed that the expo app is not running on the same port as the metro bundler not sure if it's always been this way or if I just started noticing this.
I've also tried to run the apps in the explore section of the expo app and those seem to work.
I start my app in the cmd on Windows with the command expo start, but since today started getting the error Could not load expo:// my-ip. Network response time out
I changed the connection type from LAN to Funnel
I've been working with React Native on windows 10 system. AM trying with Emulator and Physical Device as well. But it showing Below Error Message.
React Native devices not showing up
You should go to
$ANDROID_HOME/tools/bin
and run the following command
./sdkmanager --licenses
I am new react native.i am developing a app which includes json data fetching by using axios. I made development connection through usb to my pc and app works fine but when i unplug the usb or close the react packager then there is a red screen on start of my app that says could not connect to development server.and then there is a error below in yellow bar that says unable to symbolicate stack trace...how can i get rid of these errors and run my app independently ?
I think according to your question you are closing the development server from commandline or cmd.
Once you disconnect you will have to restart the packager.
TO connect with Api
select the port number from API application url Example: http://localhost:44394
Step 1: Launch the emulator using command in terminal : npx react-native run-android
Step 2: open the app in emulator:
Step 3: enter the command in root terminal: adb reverse tcp:44394 tcp:44394
I'm developing ReactNative app with Expo.
From time to time something goes wrong and during app loading following error happens
Now I noticed that this error is reproduced when I enable hot reloading on android device or emulator. But hot reloading used to work sometimes ago.
It looks like that port number (-1) in the URL leads to it.
The project is initialized with exp i and started with exp start commands.
exp version: 37.0.1
OS: Linux
Mobile device/emulator: Android 6.0