[ReactNative] Touchable invoke press on longPress when longPress handler missing
This commit is contained in:
parent
21a1cd52b5
commit
c445cbdb1e
|
@ -636,7 +636,7 @@ var TouchableMixin = {
|
|||
}
|
||||
|
||||
if (IsPressingIn[curState] && signal === Signals.RESPONDER_RELEASE) {
|
||||
var hasLongPressHandler = !!this.touchableHandleLongPress;
|
||||
var hasLongPressHandler = !!this.props.onLongPress;
|
||||
var pressIsLongButStillCallOnPress =
|
||||
IsLongPressingIn[curState] && ( // We *are* long pressing..
|
||||
!hasLongPressHandler || // But either has no long handler
|
||||
|
|
Loading…
Reference in New Issue