Search code examples
react-nativeexpoyarnpkg

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


Solution

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