【发布时间】:2019-07-10 04:53:14
【问题描述】:
我在 React Native 中使用 Flow,在使用 __DEV__ 时出现 Flow 错误,我不知道在哪里修复它。
例子:
console.log(__DEV__ ? "development" : "production", "mode");
Flow (InferError)
Cannot resolve name '__DEV__'
甚至__DEV__ 的智能感知也在那里!
【问题讨论】:
标签: react-native flowtype