首页 > 解决方案 > react-native-navigation 卡在“组件没有 componentId”

问题描述

代码是:

Navigation.registerComponent("FirstScreenName", () => () =>
 (<FirstScreen componentId="FirstScreen" />));

我试过: - 添加和删除道具componentId - 使其成为可选/强制 - 设置而不是设置registerAppLaunchedListener - 使道具静态

Bulding 很好,但是在运行时当调试器点击这一行时,它会抱怨FirstScreenName没有 componentId。但是,它确实有道具componentId

标签: react-nativereact-native-navigation

解决方案


推荐阅读