我从Expo创建了一个 React Native 项目。然后我想给它添加Flow。我注意到在我的node_modules/react-native
文件夹中有一个 .flowconfig 所以我将它复制到我的项目的根目录。运行后,flow
我从文件中收到了一些警告,node_modules/exponent
因此我为整个文件夹添加了一个忽略。之后,我在运行时仍然遇到很多错误flow
。这里有几个:
node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:227
227: /* $FlowFixMe */
^^^^^^^^^^^^^^^^ Error suppressing comment. Unused suppression
node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:1120
1120: if (__DEV__) {
^^^^^^^ identifier `__DEV__`. Could not resolve name
node_modules/react-native/Libraries/Animated/src/AnimatedImplementation.js:2162
2162: if (__DEV__) {
^^^^^^^ identifier `__DEV__`. Could not resolve name
- 世博SDK版本:14.0.0
- 流版本:0.37.0
- 反应原生版本:0.41.2