@react-navigation/drawer 7.13.9 → 7.14.0
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.
|
@@ -21,7 +21,7 @@ function DrawerNavigator({
|
|
|
21
21
|
state,
|
|
22
22
|
descriptors,
|
|
23
23
|
navigation,
|
|
24
|
-
|
|
24
|
+
render
|
|
25
25
|
} = useNavigationBuilder(DrawerRouter, {
|
|
26
26
|
id,
|
|
27
27
|
initialRouteName,
|
|
@@ -35,15 +35,13 @@ function DrawerNavigator({
|
|
|
35
35
|
screenLayout,
|
|
36
36
|
UNSTABLE_router
|
|
37
37
|
});
|
|
38
|
-
return /*#__PURE__*/_jsx(
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
})
|
|
46
|
-
});
|
|
38
|
+
return render(/*#__PURE__*/_jsx(DrawerView, {
|
|
39
|
+
...rest,
|
|
40
|
+
defaultStatus: defaultStatus,
|
|
41
|
+
state: state,
|
|
42
|
+
descriptors: descriptors,
|
|
43
|
+
navigation: navigation
|
|
44
|
+
}));
|
|
47
45
|
}
|
|
48
46
|
export function createDrawerNavigator(config) {
|
|
49
47
|
return createNavigatorFactory(DrawerNavigator)(config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createNavigatorFactory","createScreenFactory","DrawerRouter","useNavigationBuilder","DrawerView","jsx","_jsx","DrawerNavigator","id","initialRouteName","defaultStatus","backBehavior","UNSTABLE_routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router","rest","state","descriptors","navigation","
|
|
1
|
+
{"version":3,"names":["createNavigatorFactory","createScreenFactory","DrawerRouter","useNavigationBuilder","DrawerView","jsx","_jsx","DrawerNavigator","id","initialRouteName","defaultStatus","backBehavior","UNSTABLE_routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","UNSTABLE_router","rest","state","descriptors","navigation","render","createDrawerNavigator","config","createDrawerScreen"],"sourceRoot":"../../../src","sources":["navigators/createDrawerNavigator.tsx"],"mappings":";;AAAA,SACEA,sBAAsB,EACtBC,mBAAmB,EAGnBC,YAAY,EAMZC,oBAAoB,QACf,0BAA0B;AAQjC,SAASC,UAAU,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjD,SAASC,eAAeA,CAAC;EACvBC,EAAE;EACFC,gBAAgB;EAChBC,aAAa,GAAG,QAAQ;EACxBC,YAAY;EACZC,iCAAiC;EACjCC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZC,eAAe;EACf,GAAGC;AACiB,CAAC,EAAE;EACvB,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGpB,oBAAoB,CAMrED,YAAY,EAAE;IACdM,EAAE;IACFC,gBAAgB;IAChBC,aAAa;IACbC,YAAY;IACZC,iCAAiC;IACjCC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEF,OAAOK,MAAM,cACXjB,IAAA,CAACF,UAAU;IAAA,GACLe,IAAI;IACRT,aAAa,EAAEA,aAAc;IAC7BU,KAAK,EAAEA,KAAM;IACbC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA;EAAW,CACxB,CACH,CAAC;AACH;AAqBA,OAAO,SAASE,qBAAqBA,CAQnCC,MAAe,EAAmC;EAClD,OAAOzB,sBAAsB,CAACO,eAAe,CAAC,CAACkB,MAAM,CAAC;AACxD;AAEA,OAAO,MAAMC,kBAAkB,GAAGzB,mBAAmB,CAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAG1B,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAU,CAAC;AAGlB,iBAAS,eAAe,CAAC,EACvB,EAAE,EACF,gBAAgB,EAChB,aAAwB,EACxB,YAAY,EACZ,iCAAiC,EACjC,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,GAAG,IAAI,EACR,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,qBAAqB,EAG1B,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,cAAc,EAEpB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,aAAU,CAAC;AAGlB,iBAAS,eAAe,CAAC,EACvB,EAAE,EACF,gBAAgB,EAChB,aAAwB,EACxB,YAAY,EACZ,iCAAiC,EACjC,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,eAAe,EACf,GAAG,IAAI,EACR,EAAE,oBAAoB,+BA8BtB;AAED,MAAM,MAAM,aAAa,CACvB,SAAS,SAAS,aAAa,GAAG,aAAa,EAC/C,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,IACzD;IACF,SAAS,EAAE,SAAS,CAAC;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,KAAK,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IACxC,aAAa,EAAE,uBAAuB,CAAC;IACvC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,cAAc,EAAE;SACb,SAAS,IAAI,MAAM,SAAS,GAAG,oBAAoB,CAClD,SAAS,EACT,SAAS,EACT,WAAW,CACZ;KACF,CAAC;IACF,SAAS,EAAE,OAAO,eAAe,CAAC;CACnC,CAAC;AAEF,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,SAAS,SAAS,aAAa,EACrC,KAAK,CAAC,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,EACjE,KAAK,CAAC,OAAO,SAAS,oBAAoB,GAAG,aAAa,CACxD,SAAS,EACT,WAAW,CACZ,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,OAAO,CAAC,GAAG,YAAY,CAAC,OAAO,CAAC,EAClE,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC,OAAO,EAAE,MAAM,CAAC,CAElD;AAED,eAAO,MAAM,kBAAkB,wGAAuC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/drawer",
|
|
3
3
|
"description": "Integration for the drawer component from react-native-drawer-layout",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.14.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"clean": "del lib"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-navigation/elements": "^2.9.
|
|
49
|
+
"@react-navigation/elements": "^2.9.41",
|
|
50
50
|
"color": "^4.2.3",
|
|
51
51
|
"react-native-drawer-layout": "^4.2.10",
|
|
52
52
|
"use-latest-callback": "^0.2.4"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@babel/core": "^7.29.0",
|
|
56
56
|
"@jest/globals": "^30.0.0",
|
|
57
57
|
"@react-native/metro-config": "0.85.3",
|
|
58
|
-
"@react-navigation/native": "^7.
|
|
58
|
+
"@react-navigation/native": "^7.4.0",
|
|
59
59
|
"@testing-library/react-native": "^13.2.1",
|
|
60
60
|
"@types/react": "~19.2.4",
|
|
61
61
|
"del-cli": "^6.0.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"typescript": "~6.0.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"@react-navigation/native": "^7.
|
|
74
|
+
"@react-navigation/native": "^7.4.0",
|
|
75
75
|
"react": ">= 18.2.0",
|
|
76
76
|
"react-native": "*",
|
|
77
77
|
"react-native-gesture-handler": ">= 2.0.0",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
]
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "c56a43f63778adf90170224f98407e609efd450f"
|
|
101
101
|
}
|
|
@@ -34,37 +34,34 @@ function DrawerNavigator({
|
|
|
34
34
|
UNSTABLE_router,
|
|
35
35
|
...rest
|
|
36
36
|
}: DrawerNavigatorProps) {
|
|
37
|
-
const { state, descriptors, navigation,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
});
|
|
37
|
+
const { state, descriptors, navigation, render } = useNavigationBuilder<
|
|
38
|
+
DrawerNavigationState<ParamListBase>,
|
|
39
|
+
DrawerRouterOptions,
|
|
40
|
+
DrawerActionHelpers<ParamListBase>,
|
|
41
|
+
DrawerNavigationOptions,
|
|
42
|
+
DrawerNavigationEventMap
|
|
43
|
+
>(DrawerRouter, {
|
|
44
|
+
id,
|
|
45
|
+
initialRouteName,
|
|
46
|
+
defaultStatus,
|
|
47
|
+
backBehavior,
|
|
48
|
+
UNSTABLE_routeNamesChangeBehavior,
|
|
49
|
+
children,
|
|
50
|
+
layout,
|
|
51
|
+
screenListeners,
|
|
52
|
+
screenOptions,
|
|
53
|
+
screenLayout,
|
|
54
|
+
UNSTABLE_router,
|
|
55
|
+
});
|
|
57
56
|
|
|
58
|
-
return (
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/>
|
|
67
|
-
</NavigationContent>
|
|
57
|
+
return render(
|
|
58
|
+
<DrawerView
|
|
59
|
+
{...rest}
|
|
60
|
+
defaultStatus={defaultStatus}
|
|
61
|
+
state={state}
|
|
62
|
+
descriptors={descriptors}
|
|
63
|
+
navigation={navigation}
|
|
64
|
+
/>
|
|
68
65
|
);
|
|
69
66
|
}
|
|
70
67
|
|