Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 706ccbd

Browse files
committed
Fix nav reset
1 parent faac28c commit 706ccbd

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/action/nav-mobile.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ class NavAction {
1717

1818
this._reset = (stackName, routeName) =>
1919
navigatorRef.dispatch(
20-
this._navActions.navigate({
21-
routeName: stackName,
22-
action: this._stackActions.reset({
23-
index: 0,
24-
actions: [this._navActions.navigate({ routeName })],
25-
}),
20+
this._stackActions.reset({
21+
index: 0,
22+
actions: [
23+
this._navActions.navigate({
24+
routeName: stackName,
25+
action: this._navActions.navigate({ routeName }),
26+
}),
27+
],
2628
})
2729
);
2830

0 commit comments

Comments
 (0)