diff --git a/.flowconfig b/.flowconfig index 19dd983c00b2ca..b9a03451887f81 100644 --- a/.flowconfig +++ b/.flowconfig @@ -79,4 +79,4 @@ untyped-import untyped-type-import [version] -^0.107.0 +^0.108.0 diff --git a/.flowconfig.android b/.flowconfig.android index 3291c53044ea30..2cbe035feec880 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -79,4 +79,4 @@ untyped-import untyped-type-import [version] -^0.107.0 +^0.108.0 diff --git a/Libraries/Lists/VirtualizedList.js b/Libraries/Lists/VirtualizedList.js index 62f614ec06e497..24367f8b8365a6 100644 --- a/Libraries/Lists/VirtualizedList.js +++ b/Libraries/Lists/VirtualizedList.js @@ -1859,6 +1859,9 @@ class CellRenderer extends React.Component< } if (ListItemComponent) { + /* $FlowFixMe(>=0.108.0 site=react_native_fb) This comment suppresses an + * error found when Flow v0.108 was deployed. To see the error, delete + * this comment and run Flow. */ return React.createElement(ListItemComponent, { item, index, diff --git a/Libraries/Sample/Sample.android.js b/Libraries/Sample/Sample.android.js index 6020b60b1830cc..5a90c95ee14af4 100644 --- a/Libraries/Sample/Sample.android.js +++ b/Libraries/Sample/Sample.android.js @@ -16,8 +16,8 @@ const warning = require('fbjs/lib/warning'); const Sample = { test: function() { - /* $FlowFixMe(>=0.106.0 site=react_native_android_fb) This comment - * suppresses an error found when Flow v0.106 was deployed. To see the + /* $FlowFixMe(>=0.108.0 site=react_native_android_fb) This comment + * suppresses an error found when Flow v0.108 was deployed. To see the * error, delete this comment and run Flow. */ warning('Not yet implemented for Android.'); }, diff --git a/RNTester/js/RNTesterApp.android.js b/RNTester/js/RNTesterApp.android.js index 90dcae9f674189..b3afbc4ef0960f 100644 --- a/RNTester/js/RNTesterApp.android.js +++ b/RNTester/js/RNTesterApp.android.js @@ -100,12 +100,7 @@ const RNTesterExampleContainerViaHook = ({ return ( -
=0.78.0 site=react_native_android_fb) This issue - * was found when making Flow check .android.js files. */ - onPressDrawer={onPressDrawer} - /> +
@@ -161,12 +156,7 @@ const RNTesterExampleListViaHook = ({ return ( -
=0.78.0 site=react_native_android_fb) This issue - * was found when making Flow check .android.js files. */ - onPressDrawer={onPressDrawer} - /> +
diff --git a/RNTester/js/examples/TextInput/TextInputExample.android.js b/RNTester/js/examples/TextInput/TextInputExample.android.js index 091b89dbf9f791..40a56386e1eb49 100644 --- a/RNTester/js/examples/TextInput/TextInputExample.android.js +++ b/RNTester/js/examples/TextInput/TextInputExample.android.js @@ -83,9 +83,6 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> { } class RewriteExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> { - /* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses - * an error found when Flow v0.85 was deployed. To see the error, delete this - * comment and run Flow. */ constructor(props) { super(props); this.state = {text: ''}; @@ -124,9 +121,6 @@ class TokenizedTextExample extends React.Component< $FlowFixMeProps, $FlowFixMeState, > { - /* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses - * an error found when Flow v0.85 was deployed. To see the error, delete this - * comment and run Flow. */ constructor(props) { super(props); this.state = {text: 'Hello #World'}; diff --git a/package.json b/package.json index 5d9296fda400a6..5a40e6c90e4d8d 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,7 @@ "eslint-plugin-react-hooks": "^2.0.1", "eslint-plugin-react-native": "3.6.0", "eslint-plugin-relay": "1.3.11", - "flow-bin": "^0.107.0", + "flow-bin": "^0.108.0", "flow-remove-types": "1.2.3", "jest": "^24.8.0", "jest-junit": "^6.3.0", diff --git a/template/_flowconfig b/template/_flowconfig index b708e6e2805b3c..3036836ab5e28e 100644 --- a/template/_flowconfig +++ b/template/_flowconfig @@ -71,4 +71,4 @@ untyped-import untyped-type-import [version] -^0.107.0 +^0.108.0 diff --git a/yarn.lock b/yarn.lock index ada96f01f5e694..26828b317a1163 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3188,10 +3188,10 @@ flat-cache@^1.2.1: rimraf "~2.6.2" write "^0.2.1" -flow-bin@^0.107.0: - version "0.107.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.107.0.tgz#b37bfcce51204d35d58f8eb93b3a76b52291e4cc" - integrity sha512-hsmwO5Q0+XUXaO2kIKLpleUNNBSFcsGEQGBOTEC/KR/4Ez695I1fweX/ioSjbU4RWhPZhkIqnpbF9opVAauCHg== +flow-bin@^0.108.0: + version "0.108.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.108.0.tgz#6a42c85fd664d23dd937d925851e8e6ab5d71393" + integrity sha512-hPEyCP1J8rdhNDfCAA5w7bN6HUNBDcHVg/ABU5JVo0gUFMx+uRewpyEH8LlLBGjVQuIpbaPpaqpoaQhAVyaYww== flow-parser@0.*: version "0.89.0"