Skip to content

Commit 9683e14

Browse files
committed
add methodes on the NavigationContainer ref
1 parent f75242d commit 9683e14

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Native.res

+12
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ module NavigationContainer = {
3131
~children: React.element,
3232
~independent: bool=?,
3333
) => React.element = "NavigationContainer"
34+
35+
@send
36+
external isReady: Core.navigation => bool = "isReady"
37+
38+
@send
39+
external resetRoot: (Core.navigation, Core.navigationState) => unit = "resetRoot"
40+
41+
@send
42+
external getRootState: Core.navigation => Js.nullable<Core.navigationState> = "getRootState"
43+
44+
@send
45+
external getCurrentRoute: Core.navigation => Js.nullable<Core.route> = "getCurrentRoute"
3446
}
3547

3648
@module("@react-navigation/native")

0 commit comments

Comments
 (0)