File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
4
+ var Linking = { } ;
5
+
4
6
var NavigationContainer = { } ;
5
7
6
8
var ServerContainer = { } ;
@@ -9,6 +11,7 @@ var CommonActions = {};
9
11
10
12
var Link = { } ;
11
13
14
+ exports . Linking = Linking ;
12
15
exports . NavigationContainer = NavigationContainer ;
13
16
exports . ServerContainer = ServerContainer ;
14
17
exports . CommonActions = CommonActions ;
Original file line number Diff line number Diff line change @@ -19,6 +19,22 @@ external darkTheme: theme = "DarkTheme"
19
19
@module ("@react-navigation/native" )
20
20
external useTheme : unit => theme = "useTheme"
21
21
22
+ module Linking = {
23
+ type rec config = {
24
+ path ?: string ,
25
+ exact ?: bool ,
26
+ initialRouteName ?: string ,
27
+ screens ?: screens ,
28
+ }
29
+ and screens = dict <config >
30
+
31
+ type t = {
32
+ enabled ?: bool ,
33
+ prefixes : array <string >,
34
+ config ?: config ,
35
+ }
36
+ }
37
+
22
38
module NavigationContainer = {
23
39
type state = Js .Json .t
24
40
type navigationState = state => unit
@@ -30,6 +46,7 @@ module NavigationContainer = {
30
46
~onStateChange : navigationState = ?,
31
47
~onReady : unit => unit = ?,
32
48
~theme : theme = ?,
49
+ ~linking : Linking .t = ?,
33
50
~children : React .element ,
34
51
~independent : bool = ?,
35
52
) => React .element = "NavigationContainer"
You can’t perform that action at this time.
0 commit comments