Call onGestureBegin when the stack gesture becomes active

This commit is contained in:
Brent Vatne
2019-02-04 16:35:02 -08:00
parent 412abf028f
commit 512bf01785

View File

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