我试图在android中的expo应用程序上运行create-react-native-app.
首先,我通过编写命令创建了项目
create-react-native-app test
然后我执行了
npm开始
然后从expo app扫描qr代码.
但扫描QR码后,我收到以下错误:
Uncaught Error: Java.net,sockettimeoutException: failed to connect to after 10000ms
Run Code Online (Sandbox Code Playgroud)
Github问题:
https://github.com/react-community/create-react-native-app/issues/144#issuecomment-296631692
react-native react-native-android expo create-react-native-app
我安装了虚拟盒子.当我查看主机> LAN> IP地址是exp://192.168.56.1:19000.
如何在不禁用网络的情况下更改它?因为这是我的虚拟机ip,我的设备无法连接到它.
谢谢
I'm trying to run an app inside my Android emulator and on my Iphone using Expo and Create React Native App.
I' ve ran the following commands to do this.
create-react-native-app MyFirstApp
npm run android
Run Code Online (Sandbox Code Playgroud)
After doing the run command the app runs in the emulator with the following error:
Something went wrong! Could not load *ip*. Network response timed out.
Uncaught error: java.net.SocketTimeoutException: connect timed out.
Run Code Online (Sandbox Code Playgroud)
The same thing happens when I scan the QR code on my Iphone …