Skip to content

Commit adc8a33

Browse files
samwgoldmanfacebook-github-bot
authored andcommitted
Deploy Flow v0.85 to xplat/js
Reviewed By: fishythefish Differential Revision: D12898653 fbshipit-source-id: 2ed11ce569600fe4c12528939a350dd827c9a29a
1 parent 04ea976 commit adc8a33

24 files changed

+76
-17
lines changed

.flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ untyped-import
101101
untyped-type-import
102102

103103
[version]
104-
^0.84.0
104+
^0.85.0

.flowconfig.android

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,4 @@ untyped-import
101101
untyped-type-import
102102

103103
[version]
104-
^0.84.0
104+
^0.85.0

Libraries/Components/ScrollView/ScrollView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ export type Props = $ReadOnly<{|
397397
* - `false`, deprecated, use 'never' instead
398398
* - `true`, deprecated, use 'always' instead
399399
*/
400-
/* $FlowFixMe(>=0.84.0 site=react_native_fb) This comment suppresses an error
401-
* found when Flow v0.84 was deployed. To see the error, delete this comment
400+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
401+
* found when Flow v0.85 was deployed. To see the error, delete this comment
402402
* and run Flow. */
403403
keyboardShouldPersistTaps?: ?('always' | 'never' | 'handled' | false | true),
404404
/**

Libraries/StyleSheet/StyleSheetValidation.js

+3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class StyleSheetValidation {
6060
}
6161
}
6262

63+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
64+
* found when Flow v0.85 was deployed. To see the error, delete this comment
65+
* and run Flow. */
6366
static addValidStylePropTypes(stylePropTypes) {
6467
if (!__DEV__ || global.__RCTProfileIsProfiling) {
6568
return;

Libraries/Text/TextAncestor.js

+3
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ const React = require('React');
1515
/**
1616
* Whether the current element is the descendant of a <Text> element.
1717
*/
18+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
19+
* found when Flow v0.85 was deployed. To see the error, delete this comment
20+
* and run Flow. */
1821
module.exports = React.createContext(false);

RNTester/js/ActivityIndicatorExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class ToggleAnimatingActivityIndicator extends Component<
2525
> {
2626
_timer: Timer;
2727

28+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
29+
* found when Flow v0.85 was deployed. To see the error, delete this comment
30+
* and run Flow. */
2831
constructor(props) {
2932
super(props);
3033
this.state = {

RNTester/js/AnimatedExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ exports.examples = [
5959
}
6060
}
6161
class FadeInExample extends React.Component<$FlowFixMeProps, any> {
62+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an
63+
* error found when Flow v0.85 was deployed. To see the error, delete
64+
* this comment and run Flow. */
6265
constructor(props) {
6366
super(props);
6467
this.state = {

RNTester/js/ImageEditingExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class SquareImageCropper extends React.Component<
5050
_isMounted: boolean;
5151
_transformData: ImageCropData;
5252

53+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
54+
* found when Flow v0.85 was deployed. To see the error, delete this comment
55+
* and run Flow. */
5356
constructor(props) {
5457
super(props);
5558
this._isMounted = true;

RNTester/js/NativeAnimationsExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ class TrackingExample extends React.Component<
293293
this.state.toJS.setValue(nextValue);
294294
};
295295

296+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
297+
* found when Flow v0.85 was deployed. To see the error, delete this comment
298+
* and run Flow. */
296299
renderBlock = (anim, dest) => [
297300
<Animated.View
298301
key="line"

RNTester/js/ProgressViewIOSExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ class ProgressViewExample extends React.Component<Props, State> {
4242
this._rafId = requestAnimationFrame(() => this.updateProgress());
4343
};
4444

45+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
46+
* found when Flow v0.85 was deployed. To see the error, delete this comment
47+
* and run Flow. */
4548
getProgress = offset => {
4649
const progress = this.state.progress + offset;
4750
return Math.sin(progress % Math.PI) % 1;

RNTester/js/RNTesterApp.android.js

-4
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
122122
_renderDrawerContent = () => {
123123
return (
124124
<View style={styles.drawerContentWrapper}>
125-
{/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
126-
* found when making Flow check .android.js files. */}
127125
<RNTesterExampleList
128126
list={RNTesterList}
129127
displayTitleRow={true}
@@ -188,8 +186,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
188186
style={styles.toolbar}
189187
title="RNTester"
190188
/>
191-
{/* $FlowFixMe(>=0.78.0 site=react_native_android_fb) This issue was
192-
* found when making Flow check .android.js files. */}
193189
<RNTesterExampleList
194190
onNavigate={this._handleAction}
195191
list={RNTesterList}

RNTester/js/RNTesterApp.ios.js

-3
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,6 @@ class RNTesterApp extends React.Component<Props, RNTesterNavigationState> {
125125
return (
126126
<View style={styles.exampleContainer}>
127127
<Header title="RNTester" />
128-
{/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This
129-
* comment suppresses an error when upgrading Flow's support for
130-
* React. To see the error delete this comment and run Flow. */}
131128
<RNTesterExampleList
132129
onNavigate={this._handleAction}
133130
list={RNTesterList}

RNTester/js/RNTesterExampleList.js

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ const ItemSeparator = ({highlighted}) => (
199199
<View style={highlighted ? styles.separatorHighlighted : styles.separator} />
200200
);
201201

202+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
203+
* found when Flow v0.85 was deployed. To see the error, delete this comment
204+
* and run Flow. */
202205
RNTesterExampleList = RNTesterStatePersister.createContainer(
203206
RNTesterExampleList,
204207
{

RNTester/js/RNTesterSettingSwitchRow.js

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ const styles = StyleSheet.create({
4949
justifyContent: 'space-between',
5050
},
5151
});
52+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
53+
* found when Flow v0.85 was deployed. To see the error, delete this comment
54+
* and run Flow. */
5255
RNTesterSettingSwitchRow = RNTesterStatePersister.createContainer(
5356
RNTesterSettingSwitchRow,
5457
{

RNTester/js/ScrollViewExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ if (Platform.OS === 'ios') {
138138
let itemCount = 6;
139139
class AppendingList extends React.Component<{}, *> {
140140
state = {
141+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses
142+
* an error found when Flow v0.85 was deployed. To see the error,
143+
* delete this comment and run Flow. */
141144
items: [...Array(itemCount)].map((_, ii) => (
142145
<Thumb msg={`Item ${ii}`} />
143146
)),

RNTester/js/ScrollViewSimpleExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ class ScrollViewSimpleExample extends React.Component<{}> {
2121
static description =
2222
'Component that enables scrolling through child components.';
2323

24+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
25+
* found when Flow v0.85 was deployed. To see the error, delete this comment
26+
* and run Flow. */
2427
makeItems = (nItems: number, styles): Array<any> => {
2528
const items = [];
2629
for (let i = 0; i < nItems; i++) {

RNTester/js/ShareExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ class ShareMessageExample extends React.Component<$FlowFixMeProps, any> {
3131
_shareText: Function;
3232
_showResult: Function;
3333

34+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
35+
* found when Flow v0.85 was deployed. To see the error, delete this comment
36+
* and run Flow. */
3437
constructor(props) {
3538
super(props);
3639

RNTester/js/TVEventHandlerExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class TVEventHandlerView extends React.Component<
3333
lastEventType: string,
3434
},
3535
> {
36+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
37+
* found when Flow v0.85 was deployed. To see the error, delete this comment
38+
* and run Flow. */
3639
constructor(props) {
3740
super(props);
3841
this.state = {

RNTester/js/TextInputExample.android.js

+6
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
7575
}
7676

7777
class RewriteExample extends React.Component<$FlowFixMeProps, $FlowFixMeState> {
78+
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
79+
* an error found when Flow v0.85 was deployed. To see the error, delete this
80+
* comment and run Flow. */
7881
constructor(props) {
7982
super(props);
8083
this.state = {text: ''};
@@ -113,6 +116,9 @@ class TokenizedTextExample extends React.Component<
113116
$FlowFixMeProps,
114117
$FlowFixMeState,
115118
> {
119+
/* $FlowFixMe(>=0.85.0 site=react_native_android_fb) This comment suppresses
120+
* an error found when Flow v0.85 was deployed. To see the error, delete this
121+
* comment and run Flow. */
116122
constructor(props) {
117123
super(props);
118124
this.state = {text: 'Hello #World'};

RNTester/js/TextInputExample.ios.js

+18
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ class TextEventsExample extends React.Component<{}, $FlowFixMeState> {
9292
}
9393

9494
class TextInputAccessoryViewExample extends React.Component<{}, *> {
95+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
96+
* error found when Flow v0.85 was deployed. To see the error, delete this
97+
* comment and run Flow. */
9598
constructor(props) {
9699
super(props);
97100
this.state = {text: 'Placeholder Text'};
@@ -121,6 +124,9 @@ class TextInputAccessoryViewExample extends React.Component<{}, *> {
121124
}
122125

123126
class RewriteExample extends React.Component<$FlowFixMeProps, any> {
127+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
128+
* error found when Flow v0.85 was deployed. To see the error, delete this
129+
* comment and run Flow. */
124130
constructor(props) {
125131
super(props);
126132
this.state = {text: ''};
@@ -153,6 +159,9 @@ class RewriteExampleInvalidCharacters extends React.Component<
153159
$FlowFixMeProps,
154160
any,
155161
> {
162+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
163+
* error found when Flow v0.85 was deployed. To see the error, delete this
164+
* comment and run Flow. */
156165
constructor(props) {
157166
super(props);
158167
this.state = {text: ''};
@@ -174,6 +183,9 @@ class RewriteExampleInvalidCharacters extends React.Component<
174183
}
175184

176185
class RewriteExampleKana extends React.Component<$FlowFixMeProps, any> {
186+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
187+
* error found when Flow v0.85 was deployed. To see the error, delete this
188+
* comment and run Flow. */
177189
constructor(props) {
178190
super(props);
179191
this.state = {text: ''};
@@ -195,6 +207,9 @@ class RewriteExampleKana extends React.Component<$FlowFixMeProps, any> {
195207
}
196208

197209
class SecureEntryExample extends React.Component<$FlowFixMeProps, any> {
210+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
211+
* error found when Flow v0.85 was deployed. To see the error, delete this
212+
* comment and run Flow. */
198213
constructor(props) {
199214
super(props);
200215
this.state = {text: ''};
@@ -216,6 +231,9 @@ class SecureEntryExample extends React.Component<$FlowFixMeProps, any> {
216231
}
217232

218233
class TokenizedTextExample extends React.Component<$FlowFixMeProps, any> {
234+
/* $FlowFixMe(>=0.85.0 site=react_native_ios_fb) This comment suppresses an
235+
* error found when Flow v0.85 was deployed. To see the error, delete this
236+
* comment and run Flow. */
219237
constructor(props) {
220238
super(props);
221239
this.state = {text: 'Hello #World'};

local-cli/bundle/buildBundle.js

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ async function buildBundle(
3131
minify: boolean,
3232
},
3333
configPromise: Promise<ConfigT>,
34+
/* $FlowFixMe(>=0.85.0 site=react_native_fb) This comment suppresses an error
35+
* found when Flow v0.85 was deployed. To see the error, delete this comment
36+
* and run Flow. */
3437
output = outputBundle,
3538
) {
3639
// This is used by a bazillion of npm modules we don't control so we don't

local-cli/templates/HelloWorld/_flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6767
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
6868

6969
[version]
70-
^0.84.0
70+
^0.85.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@
217217
"eslint-plugin-prettier": "2.6.0",
218218
"eslint-plugin-react": "7.8.2",
219219
"eslint-plugin-react-native": "3.5.0",
220-
"flow-bin": "^0.84.0",
220+
"flow-bin": "^0.85.0",
221221
"jest": "24.0.0-alpha.4",
222222
"jest-junit": "5.1.0",
223223
"prettier": "1.13.6",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -2553,10 +2553,10 @@ flat-cache@^1.2.1:
25532553
graceful-fs "^4.1.2"
25542554
write "^0.2.1"
25552555

2556-
flow-bin@^0.84.0:
2557-
version "0.84.0"
2558-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.84.0.tgz#4cb2364c750fb37a7840524fa62456b53f64cdcb"
2559-
integrity sha512-ocji8eEYp+YfICsm+F6cIHUcD7v5sb0/ADEXm6gyUKdjQzmSckMrPUdZtyfP973t3YGHKliUMxMvIBHyR5LbXQ==
2556+
flow-bin@^0.85.0:
2557+
version "0.85.0"
2558+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.85.0.tgz#a3ca80748a35a071d5bbb2fcd61d64d977fc53a6"
2559+
integrity sha512-ougBA2q6Rn9sZrjZQ9r5pTFxCotlGouySpD2yRIuq5AYwwfIT8HHhVMeSwrN5qJayjHINLJyrnsSkkPCZyfMrQ==
25602560

25612561
for-in@^1.0.1, for-in@^1.0.2:
25622562
version "1.0.2"

0 commit comments

Comments
 (0)