react-native - 世博会调试:物理设备
问题描述
我想在 Expo 中调试我的网络请求。我正在使用 Reactotron:它可以在我的 ios 模拟器上运行,但我的物理设备上什么也没有:我在 android 和隧道 expo 连接上使用 expo。
这是我的配置App.js
:
import Reactotron from 'reactotron-react-native'
Reactotron
.setAsyncStorageHandler(AsyncStorage) // AsyncStorage would either come from `react-native` or `@react-native-community/async-storage` depending on where you get it from
.configure() // controls connection & communication settings
.useReactNative() // add all built-in react native plugins
.connect() // let's connect!
export default function App(props) {
const [isLoadingComplete, setLoadingComplete] = useState(false);
useEffect(() => {
Reactotron.connect()
});
...
我需要更改哪些内容才能在我的物理设备上进行调试请求?
解决方案
推荐阅读
- c# - Process.Start 不打开应用程序
- c - 在 IRQ 上的代码中添加或删除数据时崩溃
- elasticsearch - 如何将 fluentd 连接到 opendistro 以进行弹性搜索
- networking - 如何为三种不同的目的创建一个 Gitlab CICD 管道
- javascript - JSX 编译是如何触发的?
- c++ - 在某些行上读取带有前导制表符的制表符分隔的文本文件
- python - 如何设置clock.py文件来安排部署在Heroku上的scrapy蜘蛛爬行
- c# - 在 C# 中使用 itextsharp 设置要生成的标签大小
- sql - 生成随机值,从其他表中获取关系文本
- python - tf.keras.util.array_to_image() 如何处理内存?