mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
fix: handleCloseRoute with proper key
This commit is contained in:
@@ -262,7 +262,7 @@ class StackView extends React.Component<Props, State> {
|
||||
|
||||
private handleCloseRoute = ({ route }: { route: NavigationRoute }) => {
|
||||
this.handleTransitionComplete({
|
||||
route: this.state.routes[this.state.routes.length - 1],
|
||||
route: this.state.routes[this.state.routes.length - 2],
|
||||
});
|
||||
|
||||
// This event will trigger when the animation for closing the route ends
|
||||
|
||||
Reference in New Issue
Block a user