我的本机项目中没有.flowconfig
文件。
即使这样,如果我在本地将流量添加为:
yarn add --dev flow-bin babel-preset-flow
然后执行流初始化,它将创建一个空的.flowconfig
文件,文件末尾显示的最新流版本为0.79.1。可以吗以及我必须从https://github.com/facebook/react-native/blob/master/.flowconfig复制的规则,该规则会定期更新为当前流版本(现在为0.79.1)。
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.4
CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 4.56 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 8.11.3 - /usr/local/bin/node
Yarn: 1.1.0 - /usr/local/bin/yarn
npm: 5.6.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0
IDEs:
Android Studio: 3.0 AI-171.4443003
Xcode: 10.0/10L232m - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Editor: VSCode
或
我是否应该在项目中完全不使用流程,因为可能是react-native
的新版本处理了?