Expo React Antial New EAS Build Blass白屏幕后溅出屏幕

发布于 2025-01-30 14:39:23 字数 290 浏览 4 评论 0原文

因此,我的app.js实际上是从React-Navigation网站上复制和粘贴的。使用createStackNavigator的任何一个,包括createNativestacknavigator,以及与CreateBottomTabnavigator相同的createStackNavigator,我会在飞溅屏幕之后获得空白的白屏。唯一有效的是createMaterialBottomTabnavigator,其他所有人都显示了空白屏幕。当我使用createMaterialBottomTabnavigator并嵌入堆栈导航器时,当我单击该选项卡时,应用程序崩溃了

So my app.js is literally copied and pasted from the react-navigation website. I get a blank white screen after the splash screen when using any of the createStackNavigator's including the createNativeStackNavigator and the same with the createBottomTabNavigator. the only one that works is the createMaterialBottomTabNavigator, all of the others show a blank screen. and when I do use the createMaterialBottomTabNavigator and embedded a stack navigator, when I click to that tab, the app crashes

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花开浅夏 2025-02-06 14:39:23

安装以下软件包为我解决了这一点:

  1. 反应新的-SAFE-AREA-CONTEAR
  2. 反应式屏幕
  3. 反应式svg

前两个来自

Installing the following packages solved this for me:

  1. react-native-safe-area-context
  2. react-native-screens
  3. react-native-svg

The first two from this guide for upgrading to React Navigation 6.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文