流式类型的libdefs过时的`react-router-native`?

时间:2017-10-04 18:08:35

标签: react-router flowtype flow-typed react-router-native

react-router-native的流式类型libdefs是否已过时?

flow这个工作代码时,我得到:

3: import { Route, Switch, Redirect } from 'react-router-native';
            ^^^^^ Named import from module `react-router-native`. This module has no named export called `

检查了流式输入(https://github.com/flowtype/flow-typed/blob/master/definitions/npm/react-router-native_v4.x.x/flow_v0.53-/react-router-native_v4.x.x.js)中的libdef,它似乎不会导出任何这些类型。

我是Flow和flow-typed的新手,所以我可能在这里做错了。有什么想法吗?

1 个答案:

答案 0 :(得分:1)

react-router-native v4.x.x的Libdefs确实已经过时,应该更新。

我报告了一个问题(flowtype/flow-typed#1309)并将尝试今晚发送PR。