Skip to content

Commit 1beef1e

Browse files
Daniel Sainatifacebook-github-bot
Daniel Sainati
authored andcommitted
deploy 120 to xplat
Summary: Changelog: [Internal] bypass-lint allow-large-files Reviewed By: mroch Differential Revision: D20290164 fbshipit-source-id: 6f8633b1a8685b0551757fc4841b82eab77525c5
1 parent 78de086 commit 1beef1e

File tree

10 files changed

+26
-24
lines changed

10 files changed

+26
-24
lines changed

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ untyped-import
8585
untyped-type-import
8686

8787
[version]
88-
^0.119.0
88+
^0.120.0

.flowconfig.android

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ untyped-import
8585
untyped-type-import
8686

8787
[version]
88-
^0.119.0
88+
^0.120.0

Libraries/Animated/src/AnimatedEvent.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ class AnimatedEvent {
210210
}
211211
} else if (typeof recMapping === 'object') {
212212
for (const mappingKey in recMapping) {
213+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found
214+
* when Flow v0.120 was deployed. To see the error, delete this
215+
* comment and run Flow. */
213216
traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
214217
}
215218
}

Libraries/Animated/src/AnimatedImplementation.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ const spring = function(
170170

171171
_startNativeLoop: function(iterations?: number): void {
172172
const singleConfig = {...config, iterations};
173-
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
174-
* an error found when Flow v0.111 was deployed. To see the error,
175-
* delete this comment and run Flow. */
176173
start(value, singleConfig);
177174
},
178175

@@ -227,9 +224,6 @@ const timing = function(
227224

228225
_startNativeLoop: function(iterations?: number): void {
229226
const singleConfig = {...config, iterations};
230-
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
231-
* an error found when Flow v0.111 was deployed. To see the error,
232-
* delete this comment and run Flow. */
233227
start(value, singleConfig);
234228
},
235229

@@ -272,9 +266,6 @@ const decay = function(
272266

273267
_startNativeLoop: function(iterations?: number): void {
274268
const singleConfig = {...config, iterations};
275-
/* $FlowFixMe(>=0.111.0 site=react_native_fb) This comment suppresses
276-
* an error found when Flow v0.111 was deployed. To see the error,
277-
* delete this comment and run Flow. */
278269
start(value, singleConfig);
279270
},
280271

Libraries/Utilities/ReactNativeTestTools.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@ const React = require('react');
1616

1717
const ReactTestRenderer = require('react-test-renderer');
1818
const ShallowRenderer = require('react-test-renderer/shallow');
19-
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
19+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow
20+
* v0.120 was deployed. To see the error, delete this comment and run Flow. */
2021
const shallowRenderer = new ShallowRenderer();
2122

2223
import type {ReactTestRenderer as ReactTestRendererType} from 'react-test-renderer';
2324

2425
export type ReactTestInstance = $PropertyType<ReactTestRendererType, 'root'>;
2526

26-
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
2727
export type Predicate = (node: ReactTestInstance) => boolean;
2828

2929
type $ReturnType<Fn> = $Call<<Ret, A>((...A) => Ret) => Ret, Fn>;
30-
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
30+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow
31+
* v0.120 was deployed. To see the error, delete this comment and run Flow. */
3132
export type ReactTestRendererJSON = $ReturnType<ReactTestRenderer.create.toJSON>;
3233

3334
const {
@@ -53,8 +54,13 @@ function byClickable(): Predicate {
5354
// HACK: Find components that use `Pressability`.
5455
node.instance?.state?.pressability != null ||
5556
// TODO: Remove this after deleting `Touchable`.
57+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow
58+
* v0.120 was deployed. To see the error, delete this comment and run
59+
* Flow. */
5660
(node.instance &&
57-
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
61+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when
62+
* Flow v0.120 was deployed. To see the error, delete this comment and
63+
* run Flow. */
5864
typeof node.instance.touchableHandlePress === 'function'),
5965
'is clickable',
6066
);
@@ -69,6 +75,9 @@ function byTestID(testID: string): Predicate {
6975

7076
function byTextMatching(regex: RegExp): Predicate {
7177
return withMessage(
78+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow
79+
* v0.120 was deployed. To see the error, delete this comment and run Flow.
80+
*/
7281
node => node.props && regex.exec(node.props.children),
7382
`text content matches ${regex.toString()}`,
7483
);

jest/preprocessor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ module.exports = {
4040
}).code;
4141
}
4242

43-
/* $FlowFixMe(>=0.99.0 site=react_native_fb) This fixme can be removed after metro releases
44-
* 0.58 and RN upgrades its dependency */
4543
const {ast} = transformer.transform({
4644
filename: file,
4745
options: {

jest/renderer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ const React = require('react');
1515
const ShallowRenderer = require('react-test-renderer/shallow');
1616
const TestRenderer = require('react-test-renderer');
1717

18-
// $FlowFixMe - error revealed when flow-typing ReactTestRenderer
18+
/* $FlowFixMe(>=0.120.0) This comment suppresses an error found when Flow
19+
* v0.120 was deployed. To see the error, delete this comment and run Flow. */
1920
const renderer = new ShallowRenderer();
2021

2122
export const shallow = (Component: React.Element<any>): any => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"eslint-plugin-react-hooks": "^2.0.1",
139139
"eslint-plugin-react-native": "3.8.1",
140140
"eslint-plugin-relay": "1.7.0",
141-
"flow-bin": "^0.119.1",
141+
"flow-bin": "^0.120.1",
142142
"flow-remove-types": "1.2.3",
143143
"jest": "^24.9.0",
144144
"jest-junit": "^6.3.0",

template/_flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ untyped-import
7070
untyped-type-import
7171

7272
[version]
73-
^0.119.0
73+
^0.120.0

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3549,10 +3549,10 @@ flat-cache@^1.2.1:
35493549
rimraf "~2.6.2"
35503550
write "^0.2.1"
35513551

3552-
flow-bin@^0.119.1:
3553-
version "0.119.1"
3554-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.119.1.tgz#b6d763b386ec9f1085848ca7df98909d80a16bd0"
3555-
integrity sha512-mX6qjJVi7aLqR9sDf8QIHt8yYEWQbkMLw7qFoC7sM/AbJwvqFm3pATPN96thsaL9o1rrshvxJpSgoj1PJSC3KA==
3552+
flow-bin@^0.120.1:
3553+
version "0.120.1"
3554+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.120.1.tgz#ab051d6df71829b70a26a2c90bb81f9d43797cae"
3555+
integrity sha512-KgE+d+rKzdXzhweYVJty1QIOOZTTbtnXZf+4SLnmArLvmdfeLreQOZpeLbtq5h79m7HhDzX/HkUkoyu/fmSC2A==
35563556

35573557
flow-parser@0.*:
35583558
version "0.89.0"

0 commit comments

Comments
 (0)