We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a15437b + 951d1aa commit 95db5c4Copy full SHA for 95db5c4
src.js
@@ -65,8 +65,13 @@ export const makeNavigation = (navigationRouteName: string) => ({
65
pop: () => {
66
const navigator = navigators[navigationRouteName];
67
if (navigator) {
68
+ const { routes, index } = navigator.state.nav;
69
+ const offset = index >= 1 ? 1 : 0;
70
+ const route = routes[index - offset];
71
navigator._navigation.pop();
72
+ return route.routeName;
73
}
74
+ return null;
75
},
76
reset: (routeName?: string | string[], params?: Object) => {
77
0 commit comments