From 6b3aad31f67e3543e4b52774dfb7369e99329d52 Mon Sep 17 00:00:00 2001 From: Eli White Date: Sat, 12 May 2018 23:10:44 -0700 Subject: [PATCH] Remove unused suppressions Reviewed By: yungsters Differential Revision: D7983271 fbshipit-source-id: ee64e2dacbc8a1b75915b825f7bf0621a121422d --- Libraries/Components/Touchable/TouchableHighlight.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableHighlight.js b/Libraries/Components/Touchable/TouchableHighlight.js index 670fda7a4d9403..4d8f63eecdd0bc 100644 --- a/Libraries/Components/Touchable/TouchableHighlight.js +++ b/Libraries/Components/Touchable/TouchableHighlight.js @@ -190,7 +190,6 @@ const TouchableHighlight = createReactClass({ getDefaultProps: () => DEFAULT_PROPS, getInitialState: function() { - // $FlowFixMe Invalid prop usage this._isMounted = false; if (this.props.testOnly_pressed) { return { @@ -212,13 +211,11 @@ const TouchableHighlight = createReactClass({ }, componentDidMount: function() { - // $FlowFixMe Invalid prop usage this._isMounted = true; ensurePositiveDelayProps(this.props); }, componentWillUnmount: function() { - // $FlowFixMe Invalid prop usage this._isMounted = false; clearTimeout(this._hideTimeout); }, @@ -238,14 +235,12 @@ const TouchableHighlight = createReactClass({ */ touchableHandleActivePressIn: function(e: PressEvent) { clearTimeout(this._hideTimeout); - // $FlowFixMe Invalid prop usage this._hideTimeout = null; this._showUnderlay(); this.props.onPressIn && this.props.onPressIn(e); }, touchableHandleActivePressOut: function(e: PressEvent) { - // $FlowFixMe Invalid prop usage if (!this._hideTimeout) { this._hideUnderlay(); } @@ -256,7 +251,6 @@ const TouchableHighlight = createReactClass({ clearTimeout(this._hideTimeout); if (!Platform.isTVOS) { this._showUnderlay(); - // $FlowFixMe Invalid prop usage this._hideTimeout = setTimeout( this._hideUnderlay, this.props.delayPressOut, @@ -290,7 +284,6 @@ const TouchableHighlight = createReactClass({ }, _showUnderlay: function() { - // $FlowFixMe Invalid prop usage if (!this._isMounted || !this._hasPressHandler()) { return; } @@ -307,7 +300,6 @@ const TouchableHighlight = createReactClass({ _hideUnderlay: function() { clearTimeout(this._hideTimeout); - // $FlowFixMe Invalid prop usage this._hideTimeout = null; if (this.props.testOnly_pressed) { return; @@ -331,12 +323,10 @@ const TouchableHighlight = createReactClass({ }, render: function() { - // $FlowFixMe Invalid prop usage const child = React.Children.only(this.props.children); return ( {React.cloneElement(child, { style: StyleSheet.compose(