I would like to develop an app in Create React Native App in the environment where connecting from the Android device to the development server is not possible.
I have installed Android development tools on my laptop and the device is connected to it via USB. When I run npm run android everything starts correctly as it should, Expo is opened in the device but then it ends with an errors:
Could not load exp://192.168.128.150:19000. Can't connect to internet. Please try again
Does this mean that I cannot use Create React Native app without network between the mobile device and the working computer ?
It might not be the best solution, but it worked for me and i hope it'll be enough to help you out!
I was having the same problem and did the following:
adb devicesnpm run android with the device connectedAfter that i could normally develop through the USB! Hope i've been of help!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With