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
This commit is contained in:
Nat Mote
2019-05-03 11:39:41 -07:00
committed by Facebook Github Bot
parent 2fd381caf5
commit 0e1dfd4369
7 changed files with 14 additions and 8 deletions

View File

@@ -103,4 +103,4 @@ untyped-import
untyped-type-import
[version]
^0.97.0
^0.98.0

View File

@@ -103,4 +103,4 @@ untyped-import
untyped-type-import
[version]
^0.97.0
^0.98.0

View File

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

View File

@@ -21,6 +21,9 @@ const {
const NUM_ITEMS = 20;
class ScrollViewSimpleExample extends React.Component<{}> {
/* $FlowFixMe(>=0.98.0 site=react_native_fb) This comment suppresses an error
* found when Flow v0.98 was deployed. To see the error delete this comment
* and run Flow. */
makeItems = (nItems: number, styles): Array<any> => {
const items = [];
for (let i = 0; i < nItems; i++) {

View File

@@ -125,7 +125,7 @@
"eslint-plugin-react-hooks": "^1.5.1",
"eslint-plugin-react-native": "3.6.0",
"eslint-plugin-relay": "1.3.0",
"flow-bin": "^0.97.0",
"flow-bin": "^0.98.0",
"flow-remove-types": "1.2.3",
"jest": "^24.7.1",
"jest-junit": "^6.3.0",

View File

@@ -92,4 +92,4 @@ untyped-import
untyped-type-import
[version]
^0.97.0
^0.98.0

View File

@@ -3166,10 +3166,10 @@ flat-cache@^1.2.1:
rimraf "~2.6.2"
write "^0.2.1"
flow-bin@^0.97.0:
version "0.97.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.97.0.tgz#036ffcfc27503367a9d906ec9d843a0aa6f6bb83"
integrity sha512-jXjD05gkatLuC4+e28frH1hZoRwr1iASP6oJr61Q64+kR4kmzaS+AdFBhYgoYS5kpoe4UzwDebWK8ETQFNh00w==
flow-bin@^0.98.0:
version "0.98.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.98.0.tgz#3361a03682326a83a5f0a864749f4f7f0d826bce"
integrity sha512-vuiYjBVt82eYF+dEk9Zqa8hTSDvbhl/czxzFRLZm9/XHbJnYNMTwFoNFYAQT9IQ6ACNBIbwSTIfxroieuKja7g==
flow-parser@0.*:
version "0.89.0"