mirror of
https://github.com/status-im/react-navigation.git
synced 2025-02-24 00:58:20 +00:00
fix swipe to go back by providing the index (#4409)
This commit is contained in:
parent
2f90899620
commit
01b43974e6
@ -211,6 +211,8 @@ class StackViewLayout extends React.Component {
|
||||
|
||||
_panResponder = PanResponder.create({
|
||||
onPanResponderTerminate: () => {
|
||||
const { navigation } = this.props.transitionProps;
|
||||
const { index } = navigation.state;
|
||||
this._isResponding = false;
|
||||
this._reset(index, 0);
|
||||
this.props.onGestureCanceled && this.props.onGestureCanceled();
|
||||
|
Loading…
x
Reference in New Issue
Block a user