相关疑难解决方法(0)

网络响应超时错误(create-react-native-app)(expo)

我试图在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

38
推荐指数
6
解决办法
2万
查看次数

React Native Expo更改默认LAN IP

我安装了虚拟盒子.当我查看主机> LAN> IP地址是exp://192.168.56.1:19000.

如何在不禁用网络的情况下更改它?因为这是我的虚拟机ip,我的设备无法连接到它.

谢谢

react-native expo

28
推荐指数
3
解决办法
2万
查看次数

React native expo - Reponse timed out

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 …

android node.js ios reactjs react-native

0
推荐指数
2
解决办法
2872
查看次数