@react-navigation/drawer 8.0.0-alpha.51 → 8.0.0-alpha.52
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.
|
@@ -20,7 +20,7 @@ function DrawerNavigator({
|
|
|
20
20
|
state,
|
|
21
21
|
descriptors,
|
|
22
22
|
navigation,
|
|
23
|
-
|
|
23
|
+
render
|
|
24
24
|
} = useNavigationBuilder(DrawerRouter, {
|
|
25
25
|
initialRouteName,
|
|
26
26
|
defaultStatus,
|
|
@@ -33,15 +33,13 @@ function DrawerNavigator({
|
|
|
33
33
|
screenLayout,
|
|
34
34
|
router
|
|
35
35
|
});
|
|
36
|
-
return /*#__PURE__*/_jsx(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
})
|
|
44
|
-
});
|
|
36
|
+
return render(/*#__PURE__*/_jsx(DrawerView, {
|
|
37
|
+
...rest,
|
|
38
|
+
defaultStatus: defaultStatus,
|
|
39
|
+
state: state,
|
|
40
|
+
descriptors: descriptors,
|
|
41
|
+
navigation: navigation
|
|
42
|
+
}));
|
|
45
43
|
}
|
|
46
44
|
export const createDrawerNavigator = createNavigatorFactory(DrawerNavigator);
|
|
47
45
|
export const createDrawerScreen = createScreenFactory();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createNavigatorFactory","createScreenFactory","DrawerRouter","useNavigationBuilder","DrawerView","jsx","_jsx","DrawerNavigator","initialRouteName","defaultStatus","backBehavior","routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","router","rest","state","descriptors","navigation","
|
|
1
|
+
{"version":3,"names":["createNavigatorFactory","createScreenFactory","DrawerRouter","useNavigationBuilder","DrawerView","jsx","_jsx","DrawerNavigator","initialRouteName","defaultStatus","backBehavior","routeNamesChangeBehavior","children","layout","screenListeners","screenOptions","screenLayout","router","rest","state","descriptors","navigation","render","createDrawerNavigator","createDrawerScreen"],"sourceRoot":"../../../src","sources":["navigators/createDrawerNavigator.tsx"],"mappings":";;AAAA,SACEA,sBAAsB,EACtBC,mBAAmB,EAGnBC,YAAY,EAIZC,oBAAoB,QACf,0BAA0B;AAOjC,SAASC,UAAU,QAAQ,wBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEjD,SAASC,eAAeA,CAAC;EACvBC,gBAAgB;EAChBC,aAAa,GAAG,QAAQ;EACxBC,YAAY;EACZC,wBAAwB;EACxBC,QAAQ;EACRC,MAAM;EACNC,eAAe;EACfC,aAAa;EACbC,YAAY;EACZC,MAAM;EACN,GAAGC;AACiB,CAAC,EAAE;EACvB,MAAM;IAAEC,KAAK;IAAEC,WAAW;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGnB,oBAAoB,CAMrED,YAAY,EAAE;IACdM,gBAAgB;IAChBC,aAAa;IACbC,YAAY;IACZC,wBAAwB;IACxBC,QAAQ;IACRC,MAAM;IACNC,eAAe;IACfC,aAAa;IACbC,YAAY;IACZC;EACF,CAAC,CAAC;EAEF,OAAOK,MAAM,cACXhB,IAAA,CAACF,UAAU;IAAA,GACLc,IAAI;IACRT,aAAa,EAAEA,aAAc;IAC7BU,KAAK,EAAEA,KAAM;IACbC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA;EAAW,CACxB,CACH,CAAC;AACH;AAUA,OAAO,MAAME,qBAAqB,GAChCvB,sBAAsB,CAAgBO,eAAe,CAAC;AAExD,OAAO,MAAMiB,kBAAkB,GAAGvB,mBAAmB,CAAgB,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAG1B,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,aAAU,CAAC;AAGlB,iBAAS,eAAe,CAAC,EACvB,gBAAgB,EAChB,aAAwB,EACxB,YAAY,EACZ,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAG1B,KAAK,oBAAoB,EACzB,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,aAAU,CAAC;AAGlB,iBAAS,eAAe,CAAC,EACvB,gBAAgB,EAChB,aAAwB,EACxB,YAAY,EACZ,wBAAwB,EACxB,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,MAAM,EACN,GAAG,IAAI,EACR,EAAE,oBAAoB,+BA6BtB;AAED,MAAM,WAAW,aAAc,SAAQ,oBAAoB;IACzD,KAAK,EAAE,qBAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IAChD,aAAa,EAAE,uBAAuB,CAAC;IACvC,QAAQ,EAAE,wBAAwB,CAAC;IACnC,aAAa,EAAE,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACtD,SAAS,EAAE,OAAO,eAAe,CAAC;CACnC;AAED,eAAO,MAAM,qBAAqB,uEACsB,CAAC;AAEzD,eAAO,MAAM,kBAAkB,0IAAuC,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": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.52",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"clean": "del lib"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-navigation/elements": "^3.0.0-alpha.
|
|
49
|
+
"@react-navigation/elements": "^3.0.0-alpha.49",
|
|
50
50
|
"react-native-drawer-layout": "^5.0.0-alpha.18",
|
|
51
51
|
"use-latest-callback": "^0.3.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@jest/globals": "^30.4.1",
|
|
55
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
55
|
+
"@react-navigation/native": "^8.0.0-alpha.45",
|
|
56
56
|
"@testing-library/react-native": "^14.0.0",
|
|
57
57
|
"@types/react": "~19.2.17",
|
|
58
58
|
"del-cli": "^7.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript": "^6.0.3"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
71
|
+
"@react-navigation/native": "^8.0.0-alpha.45",
|
|
72
72
|
"react": ">= 19.2.0",
|
|
73
73
|
"react-native": "*",
|
|
74
74
|
"react-native-gesture-handler": ">= 3.0.0",
|
|
@@ -95,5 +95,5 @@
|
|
|
95
95
|
]
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
|
-
"gitHead": "
|
|
98
|
+
"gitHead": "400f7128965fc92c335a3f6c27e3fa26113915e4"
|
|
99
99
|
}
|
|
@@ -30,36 +30,33 @@ function DrawerNavigator({
|
|
|
30
30
|
router,
|
|
31
31
|
...rest
|
|
32
32
|
}: DrawerNavigatorProps) {
|
|
33
|
-
const { state, descriptors, navigation,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
});
|
|
33
|
+
const { state, descriptors, navigation, render } = useNavigationBuilder<
|
|
34
|
+
DrawerNavigationState<ParamListBase>,
|
|
35
|
+
DrawerRouterOptions,
|
|
36
|
+
DrawerActionHelpers<ParamListBase>,
|
|
37
|
+
DrawerNavigationOptions,
|
|
38
|
+
DrawerNavigationEventMap
|
|
39
|
+
>(DrawerRouter, {
|
|
40
|
+
initialRouteName,
|
|
41
|
+
defaultStatus,
|
|
42
|
+
backBehavior,
|
|
43
|
+
routeNamesChangeBehavior,
|
|
44
|
+
children,
|
|
45
|
+
layout,
|
|
46
|
+
screenListeners,
|
|
47
|
+
screenOptions,
|
|
48
|
+
screenLayout,
|
|
49
|
+
router,
|
|
50
|
+
});
|
|
52
51
|
|
|
53
|
-
return (
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/>
|
|
62
|
-
</NavigationContent>
|
|
52
|
+
return render(
|
|
53
|
+
<DrawerView
|
|
54
|
+
{...rest}
|
|
55
|
+
defaultStatus={defaultStatus}
|
|
56
|
+
state={state}
|
|
57
|
+
descriptors={descriptors}
|
|
58
|
+
navigation={navigation}
|
|
59
|
+
/>
|
|
63
60
|
);
|
|
64
61
|
}
|
|
65
62
|
|