Skip to content

Commit 9a3d722

Browse files
yungstersfacebook-github-bot
authored andcommitted
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
1 parent 88d0ac1 commit 9a3d722

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

Libraries/Components/Touchable/Touchable.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -722,18 +722,9 @@ const TouchableMixin = {
722722
this.longPressDelayTimeout = null;
723723
const curState = this.state.touchable.touchState;
724724
if (
725-
curState !== States.RESPONDER_ACTIVE_PRESS_IN &&
726-
curState !== States.RESPONDER_ACTIVE_LONG_PRESS_IN
725+
curState === States.RESPONDER_ACTIVE_PRESS_IN ||
726+
curState === States.RESPONDER_ACTIVE_LONG_PRESS_IN
727727
) {
728-
console.error(
729-
'Attempted to transition from state `' +
730-
curState +
731-
'` to `' +
732-
States.RESPONDER_ACTIVE_LONG_PRESS_IN +
733-
'`, which is not supported. This is ' +
734-
'most likely due to `Touchable.longPressDelayTimeout` not being cancelled.',
735-
);
736-
} else {
737728
this._receiveSignal(Signals.LONG_PRESS_DETECTED, e);
738729
}
739730
},

0 commit comments

Comments
 (0)