首页 > 解决方案 > 世博会调试:物理设备

问题描述

我想在 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()
  });
... 

我需要更改哪些内容才能在我的物理设备上进行调试请求?

标签: react-nativedebuggingexporeactotron

解决方案


推荐阅读