fix: handleCloseRoute with proper key

This commit is contained in:
osdnk
2019-09-25 16:00:07 +02:00
parent 33925ef7ab
commit e6566b68d7

View File

@@ -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