Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native App with Expo - QR code not loading

I'm following this tutorial:

https://blog.expo.io/building-a-react-native-app-using-expo-and-typescript-part-1-a81b6970bb82

yarn global add create-react-native-app

create-react-native-app my-app-name

cd my-app-name

yarn start

I am on the same network as my phone (Android). No VPN. I am in the root folder of my app. It says Loading dependency graph, done. so I know it's running.

Firewall is also off for this as well and this is not a timeout error.

When I scan the QR code:

Something went wrong. Could not load exp://10.0.0.21:19000.

What could be my issue?

EDIT

New error: Uncaught Error: java.net.ConnectException: Failed to connect to /10.0.0.21.19000

like image 604
mph85 Avatar asked Feb 05 '26 23:02

mph85


2 Answers

Try opening the debugger in chrome and then select tunnel if your device and the development pc are not connected to the same server.

like image 127
Rishav Kumar Avatar answered Feb 09 '26 07:02

Rishav Kumar


run the command

expo start --tunnel 
like image 33
Nupur Sharma Avatar answered Feb 09 '26 07:02

Nupur Sharma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!