@react-navigation/native 7.0.0-alpha.1 → 7.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/__mocks__/createStackNavigator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createStackNavigator.d.ts","sourceRoot":"","sources":["../../../../src/__mocks__/createStackNavigator.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW/B,CAAC"}
|
|
@@ -76,8 +76,21 @@ export type LinkingOptions<ParamList extends {}> = {
|
|
|
76
76
|
* ```
|
|
77
77
|
*/
|
|
78
78
|
config?: {
|
|
79
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Path string to match against for the whole navigation tree.
|
|
81
|
+
* It's not possible to specify params here since this doesn't belong to a screen.
|
|
82
|
+
* This is useful when the whole app is under a specific path.
|
|
83
|
+
* e.g. all of the screens are under `/admin` in `https://example.com/admin`
|
|
84
|
+
*/
|
|
85
|
+
path?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Path configuration for child screens.
|
|
88
|
+
*/
|
|
80
89
|
screens: PathConfigMap<ParamList>;
|
|
90
|
+
/**
|
|
91
|
+
* Name of the initial route to use for the root navigator.
|
|
92
|
+
*/
|
|
93
|
+
initialRouteName?: keyof ParamList;
|
|
81
94
|
};
|
|
82
95
|
/**
|
|
83
96
|
* Custom function to get the initial URL used for linking.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,IAAI,yBAAyB,EAC/C,gBAAgB,IAAI,uBAAuB,EAC3C,gBAAgB,IAAI,uBAAuB,EAC3C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,SAAS,CAAC,CAAC;IACvC;;;;;;;;;;;;;;;;;;OAkBG;IACH,SAAS,CAAC,EAAE,CACV,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,KAC5B,SAAS,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,uBAAuB,CAAC;IAClD;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,EACxC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,KAC7B,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,iBAAiB,IAAI,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/native",
|
|
3
3
|
"description": "React Native integration for React Navigation",
|
|
4
|
-
"version": "7.0.0-alpha.
|
|
4
|
+
"version": "7.0.0-alpha.2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
7
7
|
"react-navigation",
|
|
@@ -37,20 +37,20 @@
|
|
|
37
37
|
"clean": "del lib"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@react-navigation/core": "^7.0.0-alpha.
|
|
40
|
+
"@react-navigation/core": "^7.0.0-alpha.2",
|
|
41
41
|
"escape-string-regexp": "^4.0.0",
|
|
42
42
|
"fast-deep-equal": "^3.1.3",
|
|
43
43
|
"nanoid": "^3.1.23"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/react-native": "^11.5.0",
|
|
47
|
-
"@types/react": "~18.0.
|
|
48
|
-
"@types/react-dom": "~18.0.
|
|
47
|
+
"@types/react": "~18.0.27",
|
|
48
|
+
"@types/react-dom": "~18.0.10",
|
|
49
49
|
"@types/react-native": "~0.70.8",
|
|
50
50
|
"del-cli": "^5.0.0",
|
|
51
|
-
"react": "18.
|
|
51
|
+
"react": "18.2.0",
|
|
52
52
|
"react-dom": "18.2.0",
|
|
53
|
-
"react-native": "0.
|
|
53
|
+
"react-native": "0.71.8",
|
|
54
54
|
"react-native-builder-bob": "^0.20.4",
|
|
55
55
|
"typescript": "^4.9.4"
|
|
56
56
|
},
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
]
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "36c8f091556157dab74d3483651bbcbd340762ff"
|
|
76
76
|
}
|
package/src/types.tsx
CHANGED
|
@@ -96,8 +96,21 @@ export type LinkingOptions<ParamList extends {}> = {
|
|
|
96
96
|
* ```
|
|
97
97
|
*/
|
|
98
98
|
config?: {
|
|
99
|
-
|
|
99
|
+
/**
|
|
100
|
+
* Path string to match against for the whole navigation tree.
|
|
101
|
+
* It's not possible to specify params here since this doesn't belong to a screen.
|
|
102
|
+
* This is useful when the whole app is under a specific path.
|
|
103
|
+
* e.g. all of the screens are under `/admin` in `https://example.com/admin`
|
|
104
|
+
*/
|
|
105
|
+
path?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Path configuration for child screens.
|
|
108
|
+
*/
|
|
100
109
|
screens: PathConfigMap<ParamList>;
|
|
110
|
+
/**
|
|
111
|
+
* Name of the initial route to use for the root navigator.
|
|
112
|
+
*/
|
|
113
|
+
initialRouteName?: keyof ParamList;
|
|
101
114
|
};
|
|
102
115
|
/**
|
|
103
116
|
* Custom function to get the initial URL used for linking.
|