@react-navigation/drawer 7.0.3 → 7.0.5
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.
- package/lib/commonjs/views/DrawerToggleButton.js +2 -0
- package/lib/commonjs/views/DrawerToggleButton.js.map +1 -1
- package/lib/module/views/DrawerToggleButton.js +2 -0
- package/lib/module/views/DrawerToggleButton.js.map +1 -1
- package/lib/typescript/commonjs/src/views/DrawerToggleButton.d.ts +1 -1
- package/lib/typescript/commonjs/src/views/DrawerToggleButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/src/views/DrawerToggleButton.d.ts +1 -1
- package/lib/typescript/module/src/views/DrawerToggleButton.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/views/DrawerToggleButton.tsx +6 -1
|
@@ -12,11 +12,13 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
function DrawerToggleButton({
|
|
14
14
|
tintColor,
|
|
15
|
+
accessibilityLabel = 'Show navigation menu',
|
|
15
16
|
...rest
|
|
16
17
|
}) {
|
|
17
18
|
const navigation = (0, _native.useNavigation)();
|
|
18
19
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_elements.PlatformPressable, {
|
|
19
20
|
...rest,
|
|
21
|
+
accessibilityLabel: accessibilityLabel,
|
|
20
22
|
android_ripple: {
|
|
21
23
|
borderless: true
|
|
22
24
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","_native","_reactNative","_toggleDrawerIcon","_interopRequireDefault","_jsxRuntime","e","__esModule","default","DrawerToggleButton","tintColor","rest","navigation","useNavigation","jsx","PlatformPressable","android_ripple","borderless","onPress","dispatch","DrawerActions","toggleDrawer","style","styles","touchable","hitSlop","Platform","select","ios","undefined","top","right","bottom","left","children","Image","icon","resizeMode","source","toggleDrawerIcon","fadeDuration","StyleSheet","create","height","width","marginVertical","marginHorizontal","borderRadius"],"sourceRoot":"../../../src","sources":["views/DrawerToggleButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAKA,IAAAE,YAAA,GAAAF,OAAA;AAGA,IAAAG,iBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA+D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASxD,SAASG,kBAAkBA,CAAC;
|
|
1
|
+
{"version":3,"names":["_elements","require","_native","_reactNative","_toggleDrawerIcon","_interopRequireDefault","_jsxRuntime","e","__esModule","default","DrawerToggleButton","tintColor","accessibilityLabel","rest","navigation","useNavigation","jsx","PlatformPressable","android_ripple","borderless","onPress","dispatch","DrawerActions","toggleDrawer","style","styles","touchable","hitSlop","Platform","select","ios","undefined","top","right","bottom","left","children","Image","icon","resizeMode","source","toggleDrawerIcon","fadeDuration","StyleSheet","create","height","width","marginVertical","marginHorizontal","borderRadius"],"sourceRoot":"../../../src","sources":["views/DrawerToggleButton.tsx"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAKA,IAAAE,YAAA,GAAAF,OAAA;AAGA,IAAAG,iBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAA+D,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAI,uBAAAE,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASxD,SAASG,kBAAkBA,CAAC;EACjCC,SAAS;EACTC,kBAAkB,GAAG,sBAAsB;EAC3C,GAAGC;AACE,CAAC,EAAE;EACR,MAAMC,UAAU,GAAG,IAAAC,qBAAa,EAAsC,CAAC;EAEvE,oBACE,IAAAT,WAAA,CAAAU,GAAA,EAAChB,SAAA,CAAAiB,iBAAiB;IAAA,GACZJ,IAAI;IACRD,kBAAkB,EAAEA,kBAAmB;IACvCM,cAAc,EAAE;MAAEC,UAAU,EAAE;IAAK,CAAE;IACrCC,OAAO,EAAEA,CAAA,KAAMN,UAAU,CAACO,QAAQ,CAACC,qBAAa,CAACC,YAAY,CAAC,CAAC,CAAE;IACjEC,KAAK,EAAEC,MAAM,CAACC,SAAU;IACxBC,OAAO,EAAEC,qBAAQ,CAACC,MAAM,CAAC;MACvBC,GAAG,EAAEC,SAAS;MACdtB,OAAO,EAAE;QAAEuB,GAAG,EAAE,EAAE;QAAEC,KAAK,EAAE,EAAE;QAAEC,MAAM,EAAE,EAAE;QAAEC,IAAI,EAAE;MAAG;IACtD,CAAC,CAAE;IAAAC,QAAA,eAEH,IAAA9B,WAAA,CAAAU,GAAA,EAACb,YAAA,CAAAkC,KAAK;MACJb,KAAK,EAAE,CAACC,MAAM,CAACa,IAAI,EAAE3B,SAAS,GAAG;QAAEA;MAAU,CAAC,GAAG,IAAI,CAAE;MACvD4B,UAAU,EAAC,SAAS;MACpBC,MAAM,EAAEC,yBAAiB;MACzBC,YAAY,EAAE;IAAE,CACjB;EAAC,CACe,CAAC;AAExB;AAEA,MAAMjB,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BN,IAAI,EAAE;IACJO,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,cAAc,EAAE,CAAC;IACjBC,gBAAgB,EAAE;EACpB,CAAC;EACDtB,SAAS,EAAE;IACT;IACAuB,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -7,11 +7,13 @@ import toggleDrawerIcon from './assets/toggle-drawer-icon.png';
|
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
8
|
export function DrawerToggleButton({
|
|
9
9
|
tintColor,
|
|
10
|
+
accessibilityLabel = 'Show navigation menu',
|
|
10
11
|
...rest
|
|
11
12
|
}) {
|
|
12
13
|
const navigation = useNavigation();
|
|
13
14
|
return /*#__PURE__*/_jsx(PlatformPressable, {
|
|
14
15
|
...rest,
|
|
16
|
+
accessibilityLabel: accessibilityLabel,
|
|
15
17
|
android_ripple: {
|
|
16
18
|
borderless: true
|
|
17
19
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlatformPressable","DrawerActions","useNavigation","Image","Platform","StyleSheet","toggleDrawerIcon","jsx","_jsx","DrawerToggleButton","tintColor","rest","navigation","android_ripple","borderless","onPress","dispatch","toggleDrawer","style","styles","touchable","hitSlop","select","ios","undefined","default","top","right","bottom","left","children","icon","resizeMode","source","fadeDuration","create","height","width","marginVertical","marginHorizontal","borderRadius"],"sourceRoot":"../../../src","sources":["views/DrawerToggleButton.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,4BAA4B;AAC9D,SACEC,aAAa,EAEbC,aAAa,QACR,0BAA0B;AACjC,SAASC,KAAK,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAG1D,OAAOC,gBAAgB,MAAM,iCAAiC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAS/D,OAAO,SAASC,kBAAkBA,CAAC;
|
|
1
|
+
{"version":3,"names":["PlatformPressable","DrawerActions","useNavigation","Image","Platform","StyleSheet","toggleDrawerIcon","jsx","_jsx","DrawerToggleButton","tintColor","accessibilityLabel","rest","navigation","android_ripple","borderless","onPress","dispatch","toggleDrawer","style","styles","touchable","hitSlop","select","ios","undefined","default","top","right","bottom","left","children","icon","resizeMode","source","fadeDuration","create","height","width","marginVertical","marginHorizontal","borderRadius"],"sourceRoot":"../../../src","sources":["views/DrawerToggleButton.tsx"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,4BAA4B;AAC9D,SACEC,aAAa,EAEbC,aAAa,QACR,0BAA0B;A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AAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,6 +4,6 @@ type Props = {
|
|
|
4
4
|
pressOpacity?: number;
|
|
5
5
|
tintColor?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function DrawerToggleButton({ tintColor, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function DrawerToggleButton({ tintColor, accessibilityLabel, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=DrawerToggleButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggleButton.d.ts","sourceRoot":"","sources":["../../../../../src/views/DrawerToggleButton.tsx"],"names":[],"mappings":"AAWA,KAAK,KAAK,GAAG;IACX,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,
|
|
1
|
+
{"version":3,"file":"DrawerToggleButton.d.ts","sourceRoot":"","sources":["../../../../../src/views/DrawerToggleButton.tsx"],"names":[],"mappings":"AAWA,KAAK,KAAK,GAAG;IACX,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,kBAA2C,EAC3C,GAAG,IAAI,EACR,EAAE,KAAK,2CAuBP"}
|