本周遇到的最令人沮丧的 bug(React Native + Expo)

发布: (2026年5月7日 GMT+8 00:22)
1 分钟阅读
原文: Dev.to

Source: Dev.to

情况

我的应用在手机上根本无法渲染——只出现空白屏幕并伴有多个错误。

App screenshot showing blank screen

主要错误

“不兼容的 React 版本”

  • react: 19.2.5
  • react-native-renderer: 19.1.0

Error message about incompatible React versions

我看到的情况

  • 无效的 Hook 调用
  • “无法读取未定义的属性”。
  • 组件在渲染前就已失败

Console output showing errors

其他细节

看起来像是一个小的版本不匹配,但它彻底把所有东西都弄坏了。

Further screenshot of the issue

我仍在深入调查。如果有人在 Expo + monorepo 环境中遇到过这种情况,真的非常感谢任何指点。

等我弄清楚后会更新 🙌

Tags: reactnative expo debugging buildinpublic

0 浏览
Back to Blog

相关文章

阅读更多 »