@react-navigation/drawer 8.0.0-alpha.46 → 8.0.0-alpha.48
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/module/views/DrawerItem.js +1 -1
- package/lib/module/views/DrawerItem.js.map +1 -1
- package/lib/typescript/src/views/DrawerContentScrollView.d.ts +1 -1
- package/lib/typescript/src/views/DrawerContentScrollView.d.ts.map +1 -1
- package/package.json +10 -10
- package/src/views/DrawerContentScrollView.tsx +1 -1
- package/src/views/DrawerItem.tsx +1 -1
|
@@ -35,7 +35,7 @@ export function DrawerItem(props) {
|
|
|
35
35
|
} = props;
|
|
36
36
|
const {
|
|
37
37
|
borderRadius = 56
|
|
38
|
-
} = StyleSheet.flatten(style || {}
|
|
38
|
+
} = StyleSheet.flatten(style) || {};
|
|
39
39
|
const color = focused ? activeTintColor : inactiveTintColor ?? Color(colors.text)?.alpha(0.68).string() ?? 'rgba(0, 0, 0, 0.68)';
|
|
40
40
|
const backgroundColor = focused ? activeBackgroundColor ?? Color(activeTintColor)?.alpha(0.12).string() ?? 'rgba(0, 0, 0, 0.06)' : inactiveBackgroundColor;
|
|
41
41
|
const iconNode = React.useMemo(() => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["PlatformIcon","PlatformPressable","Text","Color","useTheme","React","Platform","StyleSheet","View","jsx","_jsx","jsxs","_jsxs","DrawerItem","props","colors","fonts","href","icon","label","labelStyle","focused","allowFontScaling","activeTintColor","primary","inactiveTintColor","activeBackgroundColor","inactiveBackgroundColor","style","onPress","pressColor","pressOpacity","testID","accessibilityLabel","rest","borderRadius","flatten","color","text","alpha","string","backgroundColor","iconNode","useMemo","size","iconValue","isValidElement","collapsable","styles","container","children","role","OS","undefined","hoverEffect","wrapper","marginStart","numberOfLines","labelText","medium","create","borderCurve","select","android","overflow","default","flexDirection","alignItems","paddingVertical","paddingStart","paddingEnd","marginEnd","marginVertical","flex","lineHeight","textAlignVertical"],"sourceRoot":"../../../src","sources":["views/DrawerItem.tsx"],"mappings":";;AAAA,SAEEA,YAAY,EACZC,iBAAiB,EACjBC,IAAI,QACC,4BAA4B;AACnC,SAASC,KAAK,QAAQ,qCAAqC;AAC3D,SAAqBC,QAAQ,QAAQ,0BAA0B;AAC/D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAEEC,QAAQ,EAERC,UAAU,EAEVC,IAAI,QAEC,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAyFtB;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,KAAY,EAAE;EACvC,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EAEpC,MAAM;IACJa,IAAI;IACJC,IAAI;IACJC,KAAK;IACLC,UAAU;IACVC,OAAO,GAAG,KAAK;IACfC,gBAAgB;IAChBC,eAAe,GAAGR,MAAM,CAACS,OAAO;IAChCC,iBAAiB;IACjBC,qBAAqB;IACrBC,uBAAuB,GAAG,aAAa;IACvCC,KAAK;IACLC,OAAO;IACPC,UAAU;IACVC,YAAY,GAAG,CAAC;IAChBC,MAAM;IACNC,kBAAkB;IAClB,GAAGC;EACL,CAAC,GAAGpB,KAAK;EAET,MAAM;IAAEqB,YAAY,GAAG;EAAG,CAAC,GAAG5B,UAAU,CAAC6B,OAAO,CAACR,KAAK,IAAI,CAAC,CAAC
|
|
1
|
+
{"version":3,"names":["PlatformIcon","PlatformPressable","Text","Color","useTheme","React","Platform","StyleSheet","View","jsx","_jsx","jsxs","_jsxs","DrawerItem","props","colors","fonts","href","icon","label","labelStyle","focused","allowFontScaling","activeTintColor","primary","inactiveTintColor","activeBackgroundColor","inactiveBackgroundColor","style","onPress","pressColor","pressOpacity","testID","accessibilityLabel","rest","borderRadius","flatten","color","text","alpha","string","backgroundColor","iconNode","useMemo","size","iconValue","isValidElement","collapsable","styles","container","children","role","OS","undefined","hoverEffect","wrapper","marginStart","numberOfLines","labelText","medium","create","borderCurve","select","android","overflow","default","flexDirection","alignItems","paddingVertical","paddingStart","paddingEnd","marginEnd","marginVertical","flex","lineHeight","textAlignVertical"],"sourceRoot":"../../../src","sources":["views/DrawerItem.tsx"],"mappings":";;AAAA,SAEEA,YAAY,EACZC,iBAAiB,EACjBC,IAAI,QACC,4BAA4B;AACnC,SAASC,KAAK,QAAQ,qCAAqC;AAC3D,SAAqBC,QAAQ,QAAQ,0BAA0B;AAC/D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAEEC,QAAQ,EAERC,UAAU,EAEVC,IAAI,QAEC,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAyFtB;AACA;AACA;AACA,OAAO,SAASC,UAAUA,CAACC,KAAY,EAAE;EACvC,MAAM;IAAEC,MAAM;IAAEC;EAAM,CAAC,GAAGZ,QAAQ,CAAC,CAAC;EAEpC,MAAM;IACJa,IAAI;IACJC,IAAI;IACJC,KAAK;IACLC,UAAU;IACVC,OAAO,GAAG,KAAK;IACfC,gBAAgB;IAChBC,eAAe,GAAGR,MAAM,CAACS,OAAO;IAChCC,iBAAiB;IACjBC,qBAAqB;IACrBC,uBAAuB,GAAG,aAAa;IACvCC,KAAK;IACLC,OAAO;IACPC,UAAU;IACVC,YAAY,GAAG,CAAC;IAChBC,MAAM;IACNC,kBAAkB;IAClB,GAAGC;EACL,CAAC,GAAGpB,KAAK;EAET,MAAM;IAAEqB,YAAY,GAAG;EAAG,CAAC,GAAG5B,UAAU,CAAC6B,OAAO,CAACR,KAAK,CAAC,IAAI,CAAC,CAAC;EAC7D,MAAMS,KAAiB,GAAGhB,OAAO,GAC7BE,eAAe,GACdE,iBAAiB,IAClBtB,KAAK,CAACY,MAAM,CAACuB,IAAI,CAAC,EAAEC,KAAK,CAAC,IAAI,CAAC,CAACC,MAAM,CAAC,CAAC,IACxC,qBAAsB;EAC1B,MAAMC,eAA2B,GAAGpB,OAAO,G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AEJ,CAAC;EACH,CAAC;EACDV,OAAO,EAAE;IACPW,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAE,EAAE;IACdT,WAAW,EAAE;EACf,CAAC;EACD1C,KAAK,EAAE;IACLoD,SAAS,EAAE,EAAE;IACbC,cAAc,EAAE,CAAC;IACjBC,IAAI,EAAE;EACR,CAAC;EACDf,SAAS,EAAE;IACTgB,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ScrollView, type ScrollViewProps } from 'react-native';
|
|
3
3
|
type Props = ScrollViewProps & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
|
-
ref?: React.Ref<ScrollView
|
|
5
|
+
ref?: React.Ref<React.ComponentRef<typeof ScrollView>>;
|
|
6
6
|
};
|
|
7
7
|
export declare function DrawerContentScrollView({ contentInsetAdjustmentBehavior, contentContainerStyle, style, children, ref, ...rest }: Props): React.JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerContentScrollView.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerContentScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,cAAc,CAAC;AAKtB,KAAK,KAAK,GAAG,eAAe,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"DrawerContentScrollView.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerContentScrollView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,UAAU,EACV,KAAK,eAAe,EAErB,MAAM,cAAc,CAAC;AAKtB,KAAK,KAAK,GAAG,eAAe,GAAG;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC;CACxD,CAAC;AAIF,wBAAgB,uBAAuB,CAAC,EACtC,8BAA4C,EAC5C,qBAAqB,EACrB,KAAK,EACL,QAAQ,EACR,GAAG,EACH,GAAG,IAAI,EACR,EAAE,KAAK,qBAsCP"}
|
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.48",
|
|
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.
|
|
50
|
-
"react-native-drawer-layout": "^5.0.0-alpha.
|
|
51
|
-
"use-latest-callback": "^0.3.
|
|
49
|
+
"@react-navigation/elements": "^3.0.0-alpha.45",
|
|
50
|
+
"react-native-drawer-layout": "^5.0.0-alpha.16",
|
|
51
|
+
"use-latest-callback": "^0.3.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@jest/globals": "^
|
|
55
|
-
"@react-navigation/native": "^8.0.0-alpha.
|
|
54
|
+
"@jest/globals": "^30.4.1",
|
|
55
|
+
"@react-navigation/native": "^8.0.0-alpha.41",
|
|
56
56
|
"@testing-library/react-native": "^14.0.0",
|
|
57
57
|
"@types/react": "~19.2.17",
|
|
58
58
|
"del-cli": "^7.0.0",
|
|
@@ -60,15 +60,15 @@
|
|
|
60
60
|
"react-native": "0.85.3",
|
|
61
61
|
"react-native-builder-bob": "^0.43.0",
|
|
62
62
|
"react-native-gesture-handler": "^3.0.2",
|
|
63
|
-
"react-native-reanimated": "4.3
|
|
63
|
+
"react-native-reanimated": "4.5.3",
|
|
64
64
|
"react-native-safe-area-context": "~5.7.0",
|
|
65
65
|
"react-native-screens": "^4.26.2",
|
|
66
|
-
"react-native-worklets": "0.
|
|
66
|
+
"react-native-worklets": "0.11.3",
|
|
67
67
|
"test-renderer": "1.2.0",
|
|
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.41",
|
|
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": "a92d33a7bff634f9a217a9b017afe4c920696b89"
|
|
99
99
|
}
|
|
@@ -12,7 +12,7 @@ import { DrawerPositionContext } from '../utils/DrawerPositionContext';
|
|
|
12
12
|
|
|
13
13
|
type Props = ScrollViewProps & {
|
|
14
14
|
children: React.ReactNode;
|
|
15
|
-
ref?: React.Ref<ScrollView
|
|
15
|
+
ref?: React.Ref<React.ComponentRef<typeof ScrollView>>;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
const SPACING = 12;
|
package/src/views/DrawerItem.tsx
CHANGED
|
@@ -130,7 +130,7 @@ export function DrawerItem(props: Props) {
|
|
|
130
130
|
...rest
|
|
131
131
|
} = props;
|
|
132
132
|
|
|
133
|
-
const { borderRadius = 56 } = StyleSheet.flatten(style || {}
|
|
133
|
+
const { borderRadius = 56 } = StyleSheet.flatten(style) || {};
|
|
134
134
|
const color: ColorValue = focused
|
|
135
135
|
? activeTintColor
|
|
136
136
|
: (inactiveTintColor ??
|