Skip to content

Commit 0e1dfd4

Browse files
nmotefacebook-github-bot
authored andcommitted
Upgrade to Flow v0.98
Summary: https://our.intern.facebook.com/intern/wiki/Flow/Flow_Release_Process/#update-xplat-js allow-large-files Reviewed By: avikchaudhuri Differential Revision: D15149545 fbshipit-source-id: 85b6107c058d50d9fe80fd277fcdd005faccea8e
1 parent 2fd381c commit 0e1dfd4

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

.flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ untyped-import
103103
untyped-type-import
104104

105105
[version]
106-
^0.97.0
106+
^0.98.0

.flowconfig.android

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ untyped-import
103103
untyped-type-import
104104

105105
[version]
106-
^0.97.0
106+
^0.98.0

Libraries/Components/ScrollView/ScrollView.js

+3
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,9 @@ class ScrollView extends React.Component<Props, State> {
674674
this.props.contentOffset ? this.props.contentOffset.y : 0,
675675
);
676676
this._scrollAnimatedValue.setOffset(
677+
/* $FlowFixMe(>=0.98.0 site=react_native_fb) This comment suppresses an
678+
* error found when Flow v0.98 was deployed. To see the error delete this
679+
* comment and run Flow. */
677680
this.props.contentInset ? this.props.contentInset.top : 0,
678681
);
679682
this._stickyHeaderRefs = new Map();

RNTester/js/ScrollViewSimpleExample.js

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const {
2121
const NUM_ITEMS = 20;
2222

2323
class ScrollViewSimpleExample extends React.Component<{}> {
24+
/* $FlowFixMe(>=0.98.0 site=react_native_fb) This comment suppresses an error
25+
* found when Flow v0.98 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++) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"eslint-plugin-react-hooks": "^1.5.1",
126126
"eslint-plugin-react-native": "3.6.0",
127127
"eslint-plugin-relay": "1.3.0",
128-
"flow-bin": "^0.97.0",
128+
"flow-bin": "^0.98.0",
129129
"flow-remove-types": "1.2.3",
130130
"jest": "^24.7.1",
131131
"jest-junit": "^6.3.0",

template/_flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ untyped-import
9292
untyped-type-import
9393

9494
[version]
95-
^0.97.0
95+
^0.98.0

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -3166,10 +3166,10 @@ flat-cache@^1.2.1:
31663166
rimraf "~2.6.2"
31673167
write "^0.2.1"
31683168

3169-
flow-bin@^0.97.0:
3170-
version "0.97.0"
3171-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.97.0.tgz#036ffcfc27503367a9d906ec9d843a0aa6f6bb83"
3172-
integrity sha512-jXjD05gkatLuC4+e28frH1hZoRwr1iASP6oJr61Q64+kR4kmzaS+AdFBhYgoYS5kpoe4UzwDebWK8ETQFNh00w==
3169+
flow-bin@^0.98.0:
3170+
version "0.98.0"
3171+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.0.tgz#3361a03682326a83a5f0a864749f4f7f0d826bce"
3172+
integrity sha512-vuiYjBVt82eYF+dEk9Zqa8hTSDvbhl/czxzFRLZm9/XHbJnYNMTwFoNFYAQT9IQ6ACNBIbwSTIfxroieuKja7g==
31733173

31743174
flow-parser@0.*:
31753175
version "0.89.0"

0 commit comments

Comments
 (0)