Skip to content

Commit

Permalink
RN: Delete Long Press Error in Touchable
Browse files Browse the repository at this point in the history
Summary: This error is not actionable or valuable right now.

Reviewed By: cpojer

Differential Revision: D16859423

fbshipit-source-id: b25504a9556b4d3102b35b2bffcd2d01566e0399
  • Loading branch information
yungsters authored and facebook-github-bot committed Aug 16, 2019
1 parent 88d0ac1 commit 9a3d722
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions Libraries/Components/Touchable/Touchable.js
Original file line number Diff line number Diff line change
Expand Up @@ -722,18 +722,9 @@ const TouchableMixin = {
this.longPressDelayTimeout = null;
const curState = this.state.touchable.touchState;
if (
curState !== States.RESPONDER_ACTIVE_PRESS_IN &&
curState !== States.RESPONDER_ACTIVE_LONG_PRESS_IN
curState === States.RESPONDER_ACTIVE_PRESS_IN ||
curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN
) {
console.error(
'Attempted to transition from state `' +
curState +
'` to `' +
States.RESPONDER_ACTIVE_LONG_PRESS_IN +
'`, which is not supported. This is ' +
'most likely due to `Touchable.longPressDelayTimeout` not being cancelled.',
);
} else {
this._receiveSignal(Signals.LONG_PRESS_DETECTED, e);
}
},
Expand Down

0 comments on commit 9a3d722

Please sign in to comment.