错误语句The component for route 'X' must be a React component.音译为路线“首页”的组件必须是反应组件

如下图

react-native报错信息之 The component for route 'X' must be a React component.

问题原因就是我们没有把组件导出造成的

在最后加上export default  导出页面即可

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2021-05-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
相关资源
相似解决方案