mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-24 04:25:34 +08:00
Call onGestureBegin when the stack gesture becomes active
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user