【问题标题】:Why is my React Native app crashing on start without any error?为什么我的 React Native 应用程序在启动时崩溃而没有任何错误?
【发布时间】:2020-08-20 07:46:27
【问题描述】:

我的 React Native 应用程序在 iOS 模拟器上运行良好,但在我的 iOS 设备上运行时无法运行。它只是显示初始屏幕,然后崩溃而没有任何错误。

我试过了:

  1. 删除并重新安装node_modules
  2. 删除 iOS 构建文件夹
  3. 使用react-native start --reset-cache 重置守望者缓存

但似乎没有任何效果。

【问题讨论】:

    标签: ios react-native mobile crash


    【解决方案1】:

    所以我发现了我的问题:我的 WiFi 非常不稳定。

    我所要做的就是连接到我的移动热点,重建,它就可以工作了!我认为 Metro 或其他在幕后使用 React Native 的东西依赖于稳定的网络。

    希望这对其他人有帮助!

    【讨论】:

      猜你喜欢
      • 2017-06-28
      • 2018-08-27
      • 2021-06-18
      • 1970-01-01
      • 2020-08-25
      • 2019-11-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多