Skip to content
Permalink
Browse files
Upgrade to Flow v0.108.0
Reviewed By: gabelevi

Differential Revision: D17488182

fbshipit-source-id: e67c5bcbd9f0bda49d52531387d92d7c83a01f21
  • Loading branch information
mvitousek authored and facebook-github-bot committed Sep 20, 2019
1 parent e0ea5b3 commit d34bc5fa64a54dfc2e780461ee2997a4b17f8c65
Showing 9 changed files with 15 additions and 28 deletions.
@@ -79,4 +79,4 @@ untyped-import
untyped-type-import

[version]
^0.107.0
^0.108.0
@@ -79,4 +79,4 @@ untyped-import
untyped-type-import

[version]
^0.107.0
^0.108.0
@@ -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,
@@ -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.');
},
@@ -100,12 +100,7 @@ const RNTesterExampleContainerViaHook = ({
return (
<RNTesterThemeContext.Provider value={theme}>
<View style={styles.container}>
<Header
title={title}
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue
* was found when making Flow check .android.js files. */
onPressDrawer={onPressDrawer}
/>
<Header title={title} onPressDrawer={onPressDrawer} />
<RNTesterExampleContainer module={module} ref={exampleRef} />
</View>
</RNTesterThemeContext.Provider>
@@ -161,12 +156,7 @@ const RNTesterExampleListViaHook = ({
return (
<RNTesterThemeContext.Provider value={theme}>
<View style={styles.container}>
<Header
title={title}
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue
* was found when making Flow check .android.js files. */
onPressDrawer={onPressDrawer}
/>
<Header title={title} onPressDrawer={onPressDrawer} />
<RNTesterExampleList onNavigate={onNavigate} list={list} />
</View>
</RNTesterThemeContext.Provider>
@@ -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'};
@@ -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",
@@ -71,4 +71,4 @@ untyped-import
untyped-type-import

[version]
^0.107.0
^0.108.0
@@ -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"

0 comments on commit d34bc5f

Please sign in to comment.