Call onGestureBegin when the stack gesture becomes active

This commit is contained in:
Brent Vatne 2019-02-04 16:35:02 -08:00
parent 648578abc1
commit 49ff151072
1 changed files with 2 additions and 0 deletions

View File

@ -446,6 +446,8 @@ class StackViewLayout extends React.Component {
this._handleReleaseHorizontal(nativeEvent); this._handleReleaseHorizontal(nativeEvent);
} }
} else if (nativeEvent.state === State.ACTIVE) { } else if (nativeEvent.state === State.ACTIVE) {
this.props.onGestureBegin && this.props.onGestureBegin();
// Switch to using gesture position // Switch to using gesture position
this.positionSwitch.setValue(0); this.positionSwitch.setValue(0);