Skip to content

Commit

Permalink
Remove unused suppressions
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D7983271

fbshipit-source-id: ee64e2dacbc8a1b75915b825f7bf0621a121422d
  • Loading branch information
elicwhite authored and facebook-github-bot committed May 13, 2018
1 parent 0b79d1f commit 6b3aad3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Libraries/Components/Touchable/TouchableHighlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
},
Expand All @@ -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();
}
Expand All @@ -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,
Expand Down Expand Up @@ -290,7 +284,6 @@ const TouchableHighlight = createReactClass({
},

_showUnderlay: function() {
// $FlowFixMe Invalid prop usage
if (!this._isMounted || !this._hasPressHandler()) {
return;
}
Expand All @@ -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;
Expand All @@ -331,12 +323,10 @@ const TouchableHighlight = createReactClass({
},

render: function() {
// $FlowFixMe Invalid prop usage
const child = React.Children.only(this.props.children);
return (
<View
accessible={this.props.accessible !== false}
// $FlowFixMe Invalid prop usage
accessibilityLabel={this.props.accessibilityLabel}
accessibilityComponentType={this.props.accessibilityComponentType}
accessibilityTraits={this.props.accessibilityTraits}
Expand All @@ -357,9 +347,7 @@ const TouchableHighlight = createReactClass({
onResponderMove={this.touchableHandleResponderMove}
onResponderRelease={this.touchableHandleResponderRelease}
onResponderTerminate={this.touchableHandleResponderTerminate}
// $FlowFixMe Invalid prop usage
nativeID={this.props.nativeID}
// $FlowFixMe Invalid prop usage
testID={this.props.testID}>
{React.cloneElement(child, {
style: StyleSheet.compose(
Expand Down

0 comments on commit 6b3aad3

Please sign in to comment.