Skip to content

Commit ef106f7

Browse files
DCKTcknitt
authored andcommitted
Add reset navigation function (#15)
* add reset function * fix type
1 parent 44a6811 commit ef106f7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Navigation.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ external navigateWithParams: (t, string, Js.t({..})) => unit = "navigate";
2626
[@bs.send] external getParam: (t, string) => Js.nullable('a) = "getParam";
2727
[@bs.send] external getParamWithDefault: (t, string, 'a) => 'a = "getParam";
2828
[@bs.send]
29+
external reset: (t, array(NavigationActions.action), int) => unit = "reset";
30+
[@bs.send]
2931
external addListener:
3032
(
3133
t,

0 commit comments

Comments
 (0)