Skip to content
Permalink
Browse files
RN: Delete Long Press Error in Touchable
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 9a3d722ccb523f227ffd7770a809996e6cfe75d9
Showing 1 changed file with 2 additions and 11 deletions.
@@ -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);
}
},

0 comments on commit 9a3d722

Please sign in to comment.