[ReactNative] Touchable invoke press on longPress when longPress handler missing

This commit is contained in:
Eric Vicenti 2015-03-20 12:06:04 -07:00
parent 21a1cd52b5
commit c445cbdb1e
1 changed files with 1 additions and 1 deletions

View File

@ -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