@react-navigation/drawer 7.0.0-rc.12 → 7.0.0-rc.13
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.cjs +3 -1
- package/lib/commonjs/views/DrawerToggleButton.cjs.map +1 -1
- package/lib/module/views/DrawerToggleButton.mjs +2 -1
- package/lib/module/views/DrawerToggleButton.mjs.map +1 -1
- package/lib/typescript/src/views/DrawerToggleButton.d.ts.map +1 -1
- package/package.json +20 -10
- package/src/views/DrawerToggleButton.tsx +2 -1
|
@@ -7,7 +7,9 @@ exports.DrawerToggleButton = DrawerToggleButton;
|
|
|
7
7
|
var _elements = require("@react-navigation/elements");
|
|
8
8
|
var _native = require("@react-navigation/native");
|
|
9
9
|
var _reactNative = require("react-native");
|
|
10
|
+
var _toggleDrawerIcon = _interopRequireDefault(require("./assets/toggle-drawer-icon.png"));
|
|
10
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
13
|
function DrawerToggleButton({
|
|
12
14
|
tintColor,
|
|
13
15
|
...rest
|
|
@@ -34,7 +36,7 @@ function DrawerToggleButton({
|
|
|
34
36
|
tintColor
|
|
35
37
|
} : null],
|
|
36
38
|
resizeMode: "contain",
|
|
37
|
-
source:
|
|
39
|
+
source: _toggleDrawerIcon.default,
|
|
38
40
|
fadeDuration: 0
|
|
39
41
|
})
|
|
40
42
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_elements","require","_native","_reactNative","_jsxRuntime","DrawerToggleButton","tintColor","rest","navigation","useNavigation","jsx","PlatformPressable","android_ripple","borderless","onPress","dispatch","DrawerActions","toggleDrawer","style","styles","touchable","hitSlop","Platform","select","ios","undefined","
|
|
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;EAAEC,SAAS;EAAE,GAAGC;AAAY,CAAC,EAAE;EAChE,MAAMC,UAAU,GAAG,IAAAC,qBAAa,EAAsC,CAAC;EAEvE,oBACE,IAAAR,WAAA,CAAAS,GAAA,EAACf,SAAA,CAAAgB,iBAAiB;IAAA,GACZJ,IAAI;IACRK,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;MACdrB,OAAO,EAAE;QAAEsB,GAAG,EAAE,EAAE;QAAEC,KAAK,EAAE,EAAE;QAAEC,MAAM,EAAE,EAAE;QAAEC,IAAI,EAAE;MAAG;IACtD,CAAC,CAAE;IAAAC,QAAA,eAEH,IAAA7B,WAAA,CAAAS,GAAA,EAACZ,YAAA,CAAAiC,KAAK;MACJb,KAAK,EAAE,CAACC,MAAM,CAACa,IAAI,EAAE1B,SAAS,GAAG;QAAEA;MAAU,CAAC,GAAG,IAAI,CAAE;MACvD2B,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":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PlatformPressable } from '@react-navigation/elements';
|
|
2
2
|
import { DrawerActions, useNavigation } from '@react-navigation/native';
|
|
3
3
|
import { Image, Platform, StyleSheet } from 'react-native';
|
|
4
|
+
import toggleDrawerIcon from './assets/toggle-drawer-icon.png';
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
export function DrawerToggleButton({
|
|
6
7
|
tintColor,
|
|
@@ -28,7 +29,7 @@ export function DrawerToggleButton({
|
|
|
28
29
|
tintColor
|
|
29
30
|
} : null],
|
|
30
31
|
resizeMode: "contain",
|
|
31
|
-
source:
|
|
32
|
+
source: toggleDrawerIcon,
|
|
32
33
|
fadeDuration: 0
|
|
33
34
|
})
|
|
34
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlatformPressable","DrawerActions","useNavigation","Image","Platform","StyleSheet","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","
|
|
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;EAAEC,SAAS;EAAE,GAAGC;AAAY,CAAC,EAAE;EAChE,MAAMC,UAAU,GAAGV,aAAa,CAAsC,CAAC;EAEvE,oBACEM,IAAA,CAACR,iBAAiB;IAAA,GACZW,IAAI;IACRE,cAAc,EAAE;MAAEC,UAAU,EAAE;IAAK,CAAE;IACrCC,OAAO,EAAEA,CAAA,KAAMH,UAAU,CAACI,QAAQ,CAACf,aAAa,CAACgB,YAAY,CAAC,CAAC,CAAE;IACjEC,KAAK,EAAEC,MAAM,CAACC,SAAU;IACxBC,OAAO,EAAEjB,QAAQ,CAACkB,MAAM,CAAC;MACvBC,GAAG,EAAEC,SAAS;MACdC,OAAO,EAAE;QAAEC,GAAG,EAAE,EAAE;QAAEC,KAAK,EAAE,EAAE;QAAEC,MAAM,EAAE,EAAE;QAAEC,IAAI,EAAE;MAAG;IACtD,CAAC,CAAE;IAAAC,QAAA,eAEHtB,IAAA,CAACL,KAAK;MACJe,KAAK,EAAE,CAACC,MAAM,CAACY,IAAI,EAAErB,SAAS,GAAG;QAAEA;MAAU,CAAC,GAAG,IAAI,CAAE;MACvDsB,UAAU,EAAC,SAAS;MACpBC,MAAM,EAAE3B,gBAAiB;MACzB4B,YAAY,EAAE;IAAE,CACjB;EAAC,CACe,CAAC;AAExB;AAEA,MAAMf,MAAM,GAAGd,UAAU,CAAC8B,MAAM,CAAC;EAC/BJ,IAAI,EAAE;IACJK,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,cAAc,EAAE,CAAC;IACjBC,gBAAgB,EAAE;EACpB,CAAC;EACDnB,SAAS,EAAE;IACT;IACAoB,YAAY,EAAE;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerToggleButton.tsx"],"names":[],"mappings":"
|
|
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,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAsB/D"}
|
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.13",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"clean": "del lib"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@react-navigation/elements": "^2.0.0-rc.
|
|
50
|
+
"@react-navigation/elements": "^2.0.0-rc.9",
|
|
51
51
|
"color": "^4.2.3",
|
|
52
|
-
"react-native-drawer-layout": "^4.0.0-rc.
|
|
53
|
-
"use-latest-callback": "^0.1.
|
|
52
|
+
"react-native-drawer-layout": "^4.0.0-rc.5",
|
|
53
|
+
"use-latest-callback": "^0.1.11"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@react-navigation/native": "^7.0.0-rc.
|
|
56
|
+
"@react-navigation/native": "^7.0.0-rc.8",
|
|
57
57
|
"@testing-library/react-native": "^12.4.3",
|
|
58
58
|
"@types/react": "~18.2.79",
|
|
59
59
|
"del-cli": "^5.1.0",
|
|
60
60
|
"react": "18.2.0",
|
|
61
61
|
"react-native": "0.74.2",
|
|
62
|
-
"react-native-builder-bob": "^0.25.0
|
|
62
|
+
"react-native-builder-bob": "^0.25.0",
|
|
63
63
|
"react-native-gesture-handler": "~2.16.1",
|
|
64
64
|
"react-native-reanimated": "~3.10.1",
|
|
65
65
|
"react-native-safe-area-context": "4.10.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"typescript": "^5.5.2"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@react-navigation/native": "^7.0.0-rc.
|
|
70
|
+
"@react-navigation/native": "^7.0.0-rc.8",
|
|
71
71
|
"react": ">= 18.2.0",
|
|
72
72
|
"react-native": ">= 0.72.0",
|
|
73
73
|
"react-native-gesture-handler": ">= 2.0.0",
|
|
@@ -79,8 +79,18 @@
|
|
|
79
79
|
"source": "src",
|
|
80
80
|
"output": "lib",
|
|
81
81
|
"targets": [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
[
|
|
83
|
+
"commonjs",
|
|
84
|
+
{
|
|
85
|
+
"esm": true
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
"module",
|
|
90
|
+
{
|
|
91
|
+
"esm": true
|
|
92
|
+
}
|
|
93
|
+
],
|
|
84
94
|
[
|
|
85
95
|
"typescript",
|
|
86
96
|
{
|
|
@@ -89,5 +99,5 @@
|
|
|
89
99
|
]
|
|
90
100
|
]
|
|
91
101
|
},
|
|
92
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "a5dcadcdd72520c47ef4946b507017abd519ce9c"
|
|
93
103
|
}
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
import { Image, Platform, StyleSheet } from 'react-native';
|
|
8
8
|
|
|
9
9
|
import type { DrawerNavigationProp } from '../types';
|
|
10
|
+
import toggleDrawerIcon from './assets/toggle-drawer-icon.png';
|
|
10
11
|
|
|
11
12
|
type Props = {
|
|
12
13
|
accessibilityLabel?: string;
|
|
@@ -32,7 +33,7 @@ export function DrawerToggleButton({ tintColor, ...rest }: Props) {
|
|
|
32
33
|
<Image
|
|
33
34
|
style={[styles.icon, tintColor ? { tintColor } : null]}
|
|
34
35
|
resizeMode="contain"
|
|
35
|
-
source={
|
|
36
|
+
source={toggleDrawerIcon}
|
|
36
37
|
fadeDuration={0}
|
|
37
38
|
/>
|
|
38
39
|
</PlatformPressable>
|