react-native - react-native-navigation 卡在“组件没有 componentId”
问题描述
代码是:
Navigation.registerComponent("FirstScreenName", () => () =>
(<FirstScreen componentId="FirstScreen" />));
我试过: - 添加和删除道具componentId
- 使其成为可选/强制 - 设置而不是设置registerAppLaunchedListener
- 使道具静态
Bulding 很好,但是在运行时当调试器点击这一行时,它会抱怨FirstScreenName
没有 componentId。但是,它确实有道具componentId
。
解决方案
推荐阅读
- visual-studio - TFS:在单个分支设置中将项目移动到多个“分支”
- tensorflow - 回归网络的全整数量化后非常高的误差
- vba - 按日期排序多列列表框 (dd/mm/yyyy)
- .net-core - 如何让我的 .net core razor 项目引用更新的 dll 文件?
- javascript - 如何从 base64 javascript 创建视频元素?
- python - 在pandas读取csv函数中推断日期时间格式时如何保持数据帧索引的时区?
- reactjs - React Accordion 中的复选框在 IE Spring Boot 应用程序中不起作用
- python - 如果参数大于长度,如何使 nlargest 函数出错
- python - 如何获取一个字符串并将其用作调用函数的标识符?
- python - 我怎样才能使这段代码工作?,我使用beautifulsoup4,我无法将该值刮到csv文件中