@react-navigation/drawer 7.11.2 → 7.12.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.
|
@@ -34,7 +34,7 @@ export function DrawerItemList({
|
|
|
34
34
|
});
|
|
35
35
|
if (!event.defaultPrevented) {
|
|
36
36
|
navigation.dispatch({
|
|
37
|
-
...(focused ? DrawerActions.closeDrawer() : CommonActions.navigate(route)),
|
|
37
|
+
...(focused ? DrawerActions.closeDrawer() : CommonActions.navigate(route.name, route.params)),
|
|
38
38
|
target: state.key
|
|
39
39
|
});
|
|
40
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CommonActions","DrawerActions","useLinkBuilder","React","DrawerItem","jsx","_jsx","DrawerItemList","state","navigation","descriptors","buildHref","focusedRoute","routes","index","focusedDescriptor","key","focusedOptions","options","drawerActiveTintColor","drawerInactiveTintColor","drawerActiveBackgroundColor","drawerInactiveBackgroundColor","map","route","i","focused","onPress","event","emit","type","target","canPreventDefault","defaultPrevented","dispatch","closeDrawer","navigate","title","drawerLabel","drawerIcon","drawerLabelStyle","drawerItemStyle","drawerAllowFontScaling","href","
|
|
1
|
+
{"version":3,"names":["CommonActions","DrawerActions","useLinkBuilder","React","DrawerItem","jsx","_jsx","DrawerItemList","state","navigation","descriptors","buildHref","focusedRoute","routes","index","focusedDescriptor","key","focusedOptions","options","drawerActiveTintColor","drawerInactiveTintColor","drawerActiveBackgroundColor","drawerInactiveBackgroundColor","map","route","i","focused","onPress","event","emit","type","target","canPreventDefault","defaultPrevented","dispatch","closeDrawer","navigate","name","params","title","drawerLabel","drawerIcon","drawerLabelStyle","drawerItemStyle","drawerAllowFontScaling","href","label","undefined","icon","activeTintColor","inactiveTintColor","activeBackgroundColor","inactiveBackgroundColor","allowFontScaling","labelStyle","style"],"sourceRoot":"../../../src","sources":["views/DrawerItemList.tsx"],"mappings":";;AAAA,SACEA,aAAa,EACbC,aAAa,EAGbC,cAAc,Q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;MACXC,UAAU;MACVC,gBAAgB;MAChBC,eAAe;MACfC;IACF,CAAC,GAAGlC,WAAW,CAACc,KAAK,CAACR,GAAG,CAAC,CAACE,OAAO;IAElC,oBACEZ,IAAA,CAACF,UAAU;MAEToB,KAAK,EAAEA,KAAM;MACbqB,IAAI,EAAElC,SAAS,CAACa,KAAK,CAACa,IAAI,EAAEb,KAAK,CAACc,MAAM,CAAE;MAC1CQ,KAAK,EACHN,WAAW,KAAKO,SAAS,GACrBP,WAAW,GACXD,KAAK,KAAKQ,SAAS,GACjBR,KAAK,GACLf,KAAK,CAACa,IACb;MACDW,IAAI,EAAEP,UAAW;MACjBf,OAAO,EAAEA,OAAQ;MACjBuB,eAAe,EAAE9B,qBAAsB;MACvC+B,iBAAiB,EAAE9B,uBAAwB;MAC3C+B,qBAAqB,EAAE9B,2BAA4B;MACnD+B,uBAAuB,EAAE9B,6BAA8B;MACvD+B,gBAAgB,EAAET,sBAAuB;MACzCU,UAAU,EAAEZ,gBAAiB;MAC7Ba,KAAK,EAAEZ,eAAgB;MACvBhB,OAAO,EAAEA;IAAQ,GAnBZH,KAAK,CAACR,GAoBZ,CAAC;EAEN,CAAC,CAAC;AACJ","ignoreList":[]}
|
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.12.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"clean": "del lib"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@react-navigation/elements": "^2.9.
|
|
49
|
+
"@react-navigation/elements": "^2.9.23",
|
|
50
50
|
"color": "^4.2.3",
|
|
51
51
|
"react-native-drawer-layout": "^4.2.5",
|
|
52
52
|
"use-latest-callback": "^0.2.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@jest/globals": "^30.0.0",
|
|
56
|
-
"@react-navigation/native": "^7.3.
|
|
56
|
+
"@react-navigation/native": "^7.3.1",
|
|
57
57
|
"@testing-library/react-native": "^13.2.1",
|
|
58
58
|
"@types/react": "~19.0.10",
|
|
59
59
|
"del-cli": "^6.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"typescript": "^5.9.2"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@react-navigation/native": "^7.3.
|
|
71
|
+
"@react-navigation/native": "^7.3.1",
|
|
72
72
|
"react": ">= 18.2.0",
|
|
73
73
|
"react-native": "*",
|
|
74
74
|
"react-native-gesture-handler": ">= 2.0.0",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
]
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "d1f2a06597d7f2ae490d09b7ecc4f3531e5efc46"
|
|
98
98
|
}
|
|
@@ -47,7 +47,7 @@ export function DrawerItemList({ state, navigation, descriptors }: Props) {
|
|
|
47
47
|
navigation.dispatch({
|
|
48
48
|
...(focused
|
|
49
49
|
? DrawerActions.closeDrawer()
|
|
50
|
-
: CommonActions.navigate(route)),
|
|
50
|
+
: CommonActions.navigate(route.name, route.params)),
|
|
51
51
|
target: state.key,
|
|
52
52
|
});
|
|
53
53
|
}
|