Skip to content

Commit d34bc5f

Browse files
mvitousekfacebook-github-bot
authored andcommitted
Upgrade to Flow v0.108.0
Reviewed By: gabelevi Differential Revision: D17488182 fbshipit-source-id: e67c5bcbd9f0bda49d52531387d92d7c83a01f21
1 parent e0ea5b3 commit d34bc5f

File tree

9 files changed

+15
-28
lines changed

9 files changed

+15
-28
lines changed

.flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ untyped-import
7979
untyped-type-import
8080

8181
[version]
82-
^0.107.0
82+
^0.108.0

.flowconfig.android

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ untyped-import
7979
untyped-type-import
8080

8181
[version]
82-
^0.107.0
82+
^0.108.0

Libraries/Lists/VirtualizedList.js

+3
Original file line numberDiff line numberDiff line change
@@ -1859,6 +1859,9 @@ class CellRenderer extends React.Component<
18591859
}
18601860

18611861
if (ListItemComponent) {
1862+
/* $FlowFixMe(>=0.108.0 site=react_native_fb) This comment suppresses an
1863+
* error found when Flow v0.108 was deployed. To see the error, delete
1864+
* this comment and run Flow. */
18621865
return React.createElement(ListItemComponent, {
18631866
item,
18641867
index,

Libraries/Sample/Sample.android.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const warning = require('fbjs/lib/warning');
1616

1717
const Sample = {
1818
test: function() {
19-
/* $FlowFixMe(>=0.106.0 site=react_native_android_fb) This comment
20-
* suppresses an error found when Flow v0.106 was deployed. To see the
19+
/* $FlowFixMe(>=0.108.0 site=react_native_android_fb) This comment
20+
* suppresses an error found when Flow v0.108 was deployed. To see the
2121
* error, delete this comment and run Flow. */
2222
warning('Not yet implemented for Android.');
2323
},

RNTester/js/RNTesterApp.android.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,7 @@ const RNTesterExampleContainerViaHook = ({
100100
return (
101101
<RNTesterThemeContext.Provider value={theme}>
102102
<View style={styles.container}>
103-
<Header
104-
title={title}
105-
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue
106-
* was found when making Flow check .android.js files. */
107-
onPressDrawer={onPressDrawer}
108-
/>
103+
<Header title={title} onPressDrawer={onPressDrawer} />
109104
<RNTesterExampleContainer module={module} ref={exampleRef} />
110105
</View>
111106
</RNTesterThemeContext.Provider>
@@ -161,12 +156,7 @@ const RNTesterExampleListViaHook = ({
161156
return (
162157
<RNTesterThemeContext.Provider value={theme}>
163158
<View style={styles.container}>
164-
<Header
165-
title={title}
166-
/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue
167-
* was found when making Flow check .android.js files. */
168-
onPressDrawer={onPressDrawer}
169-
/>
159+
<Header title={title} onPressDrawer={onPressDrawer} />
170160
<RNTesterExampleList onNavigate={onNavigate} list={list} />
171161
</View>
172162
</RNTesterThemeContext.Provider>

RNTester/js/examples/TextInput/TextInputExample.android.js

-6
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
8383
}
8484

8585
class RewriteExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
86-
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
87-
* an error found when Flow v0.85 was deployed. To see the error, delete this
88-
* comment and run Flow. */
8986
constructor(props) {
9087
super(props);
9188
this.state = {text: ''};
@@ -124,9 +121,6 @@ class TokenizedTextExample extends React.Component<
124121
$FlowFixMeProps,
125122
$FlowFixMeState,
126123
> {
127-
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
128-
* an error found when Flow v0.85 was deployed. To see the error, delete this
129-
* comment and run Flow. */
130124
constructor(props) {
131125
super(props);
132126
this.state = {text: 'Hello #World'};

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
"eslint-plugin-react-hooks": "^2.0.1",
141141
"eslint-plugin-react-native": "3.6.0",
142142
"eslint-plugin-relay": "1.3.11",
143-
"flow-bin": "^0.107.0",
143+
"flow-bin": "^0.108.0",
144144
"flow-remove-types": "1.2.3",
145145
"jest": "^24.8.0",
146146
"jest-junit": "^6.3.0",

template/_flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ untyped-import
7171
untyped-type-import
7272

7373
[version]
74-
^0.107.0
74+
^0.108.0

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3188,10 +3188,10 @@ flat-cache@^1.2.1:
31883188
rimraf "~2.6.2"
31893189
write "^0.2.1"
31903190

3191-
flow-bin@^0.107.0:
3192-
version "0.107.0"
3193-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.107.0.tgz#b37bfcce51204d35d58f8eb93b3a76b52291e4cc"
3194-
integrity sha512-hsmwO5Q0+XUXaO2kIKLpleUNNBSFcsGEQGBOTEC/KR/4Ez695I1fweX/ioSjbU4RWhPZhkIqnpbF9opVAauCHg==
3191+
flow-bin@^0.108.0:
3192+
version "0.108.0"
3193+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.108.0.tgz#6a42c85fd664d23dd937d925851e8e6ab5d71393"
3194+
integrity sha512-hPEyCP1J8rdhNDfCAA5w7bN6HUNBDcHVg/ABU5JVo0gUFMx+uRewpyEH8LlLBGjVQuIpbaPpaqpoaQhAVyaYww==
31953195

31963196
flow-parser@0.*:
31973197
version "0.89.0"

0 commit comments

Comments
 (0)