mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
Fix events issue when swiping back (#3420)
This commit is contained in:
committed by
Brent Vatne
parent
282e5abac2
commit
98cfd7a531
@@ -183,7 +183,10 @@ class CardStack extends React.Component {
|
||||
const backFromScene = scenes.find(s => s.index === toValue + 1);
|
||||
if (!this._isResponding && backFromScene) {
|
||||
navigation.dispatch(
|
||||
NavigationActions.back({ key: backFromScene.route.key })
|
||||
NavigationActions.back({
|
||||
key: backFromScene.route.key,
|
||||
immediate: true,
|
||||
})
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user