flow 给出错误,因为在 react-native 功能组件中没有提到返回数据类型

问题描述

错误出现在以下代码片段中 -

export default function App() { 
      return (
         \\jsx code
      ) 
   }

错误读取 -

Cannot build a typed interface for this module. You should annotate the exports of this module with types. Missing type                                                                                                                   annotation at function return: [signature-verification-failure]                                                                                                                                                                              131| export default function App() { 

我假设 flow 想让我提到这个函数的返回类型。我不确定那是什么。 提前致谢:)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)