From 8a4975051ebbc0249878482e6d4e25a2ff06e0be Mon Sep 17 00:00:00 2001 From: Sam Goldman Date: Mon, 1 Oct 2018 22:15:06 -0700 Subject: [PATCH] Upgrade xplat/js to Flow v0.82 Reviewed By: yungsters Differential Revision: D10139929 fbshipit-source-id: ae44a8af7cab28c4acfd7c97e636467e44adcf37 --- .flowconfig | 2 +- .flowconfig.android | 2 +- .../SwipeableRow/SwipeableQuickActionButton.js | 9 +++++++++ local-cli/templates/HelloWorld/_flowconfig | 2 +- package.json | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.flowconfig b/.flowconfig index 2907e44c8..60467473a 100644 --- a/.flowconfig +++ b/.flowconfig @@ -100,4 +100,4 @@ untyped-import untyped-type-import [version] -^0.81.0 +^0.82.0 diff --git a/.flowconfig.android b/.flowconfig.android index a32f8678b..99eff7c0c 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -100,4 +100,4 @@ untyped-import untyped-type-import [version] -^0.81.0 +^0.82.0 diff --git a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js index 9c99418df..82e1f7a0a 100644 --- a/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js +++ b/Libraries/Experimental/SwipeableRow/SwipeableQuickActionButton.js @@ -27,12 +27,21 @@ import type {ImageSource} from 'ImageSource'; class SwipeableQuickActionButton extends React.Component<{ accessibilityLabel?: string, imageSource?: ?(ImageSource | number), + /* $FlowFixMe(>=0.82.0 site=react_native_fb) This comment suppresses an error + * found when Flow v0.82 was deployed. To see the error delete this comment + * and run Flow. */ imageStyle?: ?DeprecatedViewPropTypes.style, mainView?: ?React.Node, onPress?: Function, + /* $FlowFixMe(>=0.82.0 site=react_native_fb) This comment suppresses an error + * found when Flow v0.82 was deployed. To see the error delete this comment + * and run Flow. */ style?: ?DeprecatedViewPropTypes.style, testID?: string, text?: ?(string | Object | Array), + /* $FlowFixMe(>=0.82.0 site=react_native_fb) This comment suppresses an error + * found when Flow v0.82 was deployed. To see the error delete this comment + * and run Flow. */ textStyle?: ?DeprecatedViewPropTypes.style, }> { render(): React.Node { diff --git a/local-cli/templates/HelloWorld/_flowconfig b/local-cli/templates/HelloWorld/_flowconfig index 0dfcfcd62..77aa3cd9e 100644 --- a/local-cli/templates/HelloWorld/_flowconfig +++ b/local-cli/templates/HelloWorld/_flowconfig @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError [version] -^0.81.0 +^0.82.0 diff --git a/package.json b/package.json index aa7c52f80..c3cfac067 100644 --- a/package.json +++ b/package.json @@ -219,7 +219,7 @@ "eslint-plugin-prettier": "2.6.0", "eslint-plugin-react": "7.8.2", "eslint-plugin-react-native": "^3.2.1", - "flow-bin": "^0.81.0", + "flow-bin": "^0.82.0", "jest": "23.4.1", "jest-junit": "5.1.0", "prettier": "1.13.6",