@react-navigation/drawer 7.0.0-rc.7 → 7.0.0-rc.9
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.
|
@@ -77,7 +77,7 @@ function DrawerItem(props) {
|
|
|
77
77
|
}]
|
|
78
78
|
}, iconNode, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
79
79
|
style: [styles.label, {
|
|
80
|
-
marginStart: iconNode ?
|
|
80
|
+
marginStart: iconNode ? 12 : 0
|
|
81
81
|
}]
|
|
82
82
|
}, typeof label === 'string' ? /*#__PURE__*/React.createElement(_elements.Text, {
|
|
83
83
|
numberOfLines: 1,
|
|
@@ -68,7 +68,7 @@ export function DrawerItem(props) {
|
|
|
68
68
|
}]
|
|
69
69
|
}, iconNode, /*#__PURE__*/React.createElement(View, {
|
|
70
70
|
style: [styles.label, {
|
|
71
|
-
marginStart: iconNode ?
|
|
71
|
+
marginStart: iconNode ? 12 : 0
|
|
72
72
|
}]
|
|
73
73
|
}, typeof label === 'string' ? /*#__PURE__*/React.createElement(Text, {
|
|
74
74
|
numberOfLines: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerItem.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,0BAA0B,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,SAAS,EAEd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG;IACX;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"DrawerItem.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,0BAA0B,CAAC;AAEh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,MAAM,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,qBAmEtC"}
|
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.0.0-rc.
|
|
4
|
+
"version": "7.0.0-rc.9",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
]
|
|
83
83
|
]
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "1f99149e1277221773bf39586ac12367ec2829fb"
|
|
86
86
|
}
|
package/src/views/DrawerItem.tsx
CHANGED
|
@@ -14,7 +14,7 @@ type Props = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The route object which should be specified by the drawer item.
|
|
16
16
|
*/
|
|
17
|
-
route
|
|
17
|
+
route?: Route<string>;
|
|
18
18
|
/**
|
|
19
19
|
* The `href` to use for the anchor tag on web
|
|
20
20
|
*/
|
|
@@ -147,7 +147,7 @@ export function DrawerItem(props: Props) {
|
|
|
147
147
|
>
|
|
148
148
|
<View style={[styles.wrapper, { borderRadius }]}>
|
|
149
149
|
{iconNode}
|
|
150
|
-
<View style={[styles.label, { marginStart: iconNode ?
|
|
150
|
+
<View style={[styles.label, { marginStart: iconNode ? 12 : 0 }]}>
|
|
151
151
|
{typeof label === 'string' ? (
|
|
152
152
|
<Text
|
|
153
153
|
numberOfLines={1}
|