Skip to content

Commit

Permalink
Upgrade to Flow v0.98
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nmote authored and facebook-github-bot committed May 3, 2019
1 parent 2fd381c commit 0e1dfd4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ untyped-import
untyped-type-import

[version]
^0.97.0
^0.98.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ untyped-import
untyped-type-import

[version]
^0.97.0
^0.98.0
3 changes: 3 additions & 0 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions RNTester/js/ScrollViewSimpleExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ untyped-import
untyped-type-import

[version]
^0.97.0
^0.98.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0e1dfd4

Please sign in to comment.