@react-navigation/drawer 7.0.0-alpha.0 → 7.0.0-alpha.10
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/index.js +20 -21
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/navigators/createDrawerNavigator.js +11 -9
- package/lib/commonjs/navigators/createDrawerNavigator.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/DrawerPositionContext.js +4 -5
- package/lib/commonjs/utils/DrawerPositionContext.js.map +1 -1
- package/lib/commonjs/utils/DrawerStatusContext.js +4 -6
- package/lib/commonjs/utils/DrawerStatusContext.js.map +1 -1
- package/lib/commonjs/utils/addCancelListener.js +19 -0
- package/lib/commonjs/utils/addCancelListener.js.map +1 -0
- package/lib/commonjs/utils/addCancelListener.native.js +15 -0
- package/lib/commonjs/utils/addCancelListener.native.js.map +1 -0
- package/lib/commonjs/utils/getDrawerStatusFromState.js +2 -2
- package/lib/commonjs/utils/getDrawerStatusFromState.js.map +1 -1
- package/lib/commonjs/utils/useDrawerStatus.js +5 -6
- package/lib/commonjs/utils/useDrawerStatus.js.map +1 -1
- package/lib/commonjs/views/DrawerContent.js +7 -8
- package/lib/commonjs/views/DrawerContent.js.map +1 -1
- package/lib/commonjs/views/DrawerContentScrollView.js +12 -10
- package/lib/commonjs/views/DrawerContentScrollView.js.map +1 -1
- package/lib/commonjs/views/DrawerItem.js +14 -64
- package/lib/commonjs/views/DrawerItem.js.map +1 -1
- package/lib/commonjs/views/DrawerItemList.js +6 -7
- package/lib/commonjs/views/DrawerItemList.js.map +1 -1
- package/lib/commonjs/views/DrawerToggleButton.js +5 -7
- package/lib/commonjs/views/DrawerToggleButton.js.map +1 -1
- package/lib/commonjs/views/DrawerView.js +69 -38
- package/lib/commonjs/views/DrawerView.js.map +1 -1
- package/lib/commonjs/views/ScreenFallback.js +4 -6
- package/lib/commonjs/views/ScreenFallback.js.map +1 -1
- package/lib/module/index.js +10 -10
- package/lib/module/index.js.map +1 -1
- package/lib/module/navigators/createDrawerNavigator.js +7 -3
- package/lib/module/navigators/createDrawerNavigator.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/DrawerPositionContext.js +1 -1
- package/lib/module/utils/DrawerPositionContext.js.map +1 -1
- package/lib/module/utils/DrawerStatusContext.js +1 -2
- package/lib/module/utils/DrawerStatusContext.js.map +1 -1
- package/lib/module/utils/addCancelListener.js +12 -0
- package/lib/module/utils/addCancelListener.js.map +1 -0
- package/lib/module/utils/addCancelListener.native.js +8 -0
- package/lib/module/utils/addCancelListener.native.js.map +1 -0
- package/lib/module/utils/getDrawerStatusFromState.js +2 -2
- package/lib/module/utils/getDrawerStatusFromState.js.map +1 -1
- package/lib/module/utils/useDrawerStatus.js +2 -2
- package/lib/module/utils/useDrawerStatus.js.map +1 -1
- package/lib/module/views/DrawerContent.js +3 -3
- package/lib/module/views/DrawerContent.js.map +1 -1
- package/lib/module/views/DrawerContentScrollView.js +9 -5
- package/lib/module/views/DrawerContentScrollView.js.map +1 -1
- package/lib/module/views/DrawerItem.js +14 -64
- package/lib/module/views/DrawerItem.js.map +1 -1
- package/lib/module/views/DrawerItemList.js +4 -4
- package/lib/module/views/DrawerItemList.js.map +1 -1
- package/lib/module/views/DrawerToggleButton.js +3 -5
- package/lib/module/views/DrawerToggleButton.js.map +1 -1
- package/lib/module/views/DrawerView.js +65 -34
- package/lib/module/views/DrawerView.js.map +1 -1
- package/lib/module/views/ScreenFallback.js +2 -4
- package/lib/module/views/ScreenFallback.js.map +1 -1
- package/lib/typescript/src/index.d.ts +10 -10
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/navigators/createDrawerNavigator.d.ts +6 -6
- package/lib/typescript/src/navigators/createDrawerNavigator.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +34 -10
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/DrawerPositionContext.d.ts +1 -2
- package/lib/typescript/src/utils/DrawerPositionContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/DrawerStatusContext.d.ts +1 -2
- package/lib/typescript/src/utils/DrawerStatusContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/addCancelListener.d.ts +2 -0
- package/lib/typescript/src/utils/addCancelListener.d.ts.map +1 -0
- package/lib/typescript/src/utils/addCancelListener.native.d.ts +2 -0
- package/lib/typescript/src/utils/addCancelListener.native.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDrawerStatusFromState.d.ts +1 -1
- package/lib/typescript/src/utils/getDrawerStatusFromState.d.ts.map +1 -1
- package/lib/typescript/src/utils/useDrawerStatus.d.ts +1 -1
- package/lib/typescript/src/utils/useDrawerStatus.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerContent.d.ts +2 -2
- package/lib/typescript/src/views/DrawerContent.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerContentScrollView.d.ts +2 -3
- package/lib/typescript/src/views/DrawerContentScrollView.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerItem.d.ts +3 -3
- package/lib/typescript/src/views/DrawerItem.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerItemList.d.ts +2 -2
- package/lib/typescript/src/views/DrawerItemList.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerToggleButton.d.ts +2 -2
- package/lib/typescript/src/views/DrawerToggleButton.d.ts.map +1 -1
- package/lib/typescript/src/views/DrawerView.d.ts +3 -3
- package/lib/typescript/src/views/DrawerView.d.ts.map +1 -1
- package/lib/typescript/src/views/ScreenFallback.d.ts +3 -3
- package/lib/typescript/src/views/ScreenFallback.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/index.tsx +10 -10
- package/src/navigators/createDrawerNavigator.tsx +11 -7
- package/src/types.tsx +22 -12
- package/src/utils/DrawerPositionContext.tsx +3 -1
- package/src/utils/DrawerStatusContext.tsx +3 -5
- package/src/utils/addCancelListener.native.tsx +12 -0
- package/src/utils/addCancelListener.tsx +13 -0
- package/src/utils/getDrawerStatusFromState.tsx +1 -1
- package/src/utils/useDrawerStatus.tsx +2 -2
- package/src/views/DrawerContent.tsx +3 -3
- package/src/views/DrawerContentScrollView.tsx +12 -12
- package/src/views/DrawerItem.tsx +12 -85
- package/src/views/DrawerItemList.tsx +8 -12
- package/src/views/DrawerToggleButton.tsx +3 -5
- package/src/views/DrawerView.tsx +75 -40
- package/src/views/ScreenFallback.tsx +6 -1
|
@@ -9,12 +9,11 @@ try {
|
|
|
9
9
|
// Ignore
|
|
10
10
|
}
|
|
11
11
|
export const MaybeScreenContainer = _ref => {
|
|
12
|
-
var _Screens, _Screens$screensEnabl;
|
|
13
12
|
let {
|
|
14
13
|
enabled,
|
|
15
14
|
...rest
|
|
16
15
|
} = _ref;
|
|
17
|
-
if (
|
|
16
|
+
if (Screens?.screensEnabled?.()) {
|
|
18
17
|
return /*#__PURE__*/React.createElement(Screens.ScreenContainer, _extends({
|
|
19
18
|
enabled: enabled
|
|
20
19
|
}, rest));
|
|
@@ -22,13 +21,12 @@ export const MaybeScreenContainer = _ref => {
|
|
|
22
21
|
return /*#__PURE__*/React.createElement(View, rest);
|
|
23
22
|
};
|
|
24
23
|
export function MaybeScreen(_ref2) {
|
|
25
|
-
var _Screens2, _Screens2$screensEnab;
|
|
26
24
|
let {
|
|
27
25
|
visible,
|
|
28
26
|
children,
|
|
29
27
|
...rest
|
|
30
28
|
} = _ref2;
|
|
31
|
-
if (
|
|
29
|
+
if (Screens?.screensEnabled?.()) {
|
|
32
30
|
return /*#__PURE__*/React.createElement(Screens.Screen, _extends({
|
|
33
31
|
activityState: visible ? 2 : 0
|
|
34
32
|
}, rest), children);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ResourceSavingView","React","View","Screens","require","e","MaybeScreenContainer","enabled","rest","screensEnabled","MaybeScreen","visible","children"],"sourceRoot":"
|
|
1
|
+
{"version":3,"names":["ResourceSavingView","React","View","Screens","require","e","MaybeScreenContainer","_ref","enabled","rest","screensEnabled","createElement","ScreenContainer","_extends","MaybeScreen","_ref2","visible","children","Screen","activityState"],"sourceRoot":"../../../src","sources":["views/ScreenFallback.tsx"],"mappings":";AAAA,SAASA,kBAAkB,QAAQ,4BAA4B;AAC/D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAEEC,IAAI,QAGC,cAAc;AAUrB,IAAIC,OAA0D;AAE9D,IAAI;EACFA,OAAO,GAAGC,OAAO,CAAC,sBAAsB,CAAC;AAC3C,CAAC,CAAC,OAAOC,CAAC,EAAE;EACV;AAAA;AAGF,OAAO,MAAMC,oBAAoB,GAAGC,IAAA,IAO9B;EAAA,IAP+B;IACnCC,OAAO;IACP,GAAGC;EAKL,CAAC,GAAAF,IAAA;EACC,IAAIJ,OAAO,EAAEO,cAAc,GAAG,CAAC,EAAE;IAC/B,oBAAOT,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACS,eAAe,EAAAC,QAAA;MAACL,OAAO,EAAEA;IAAQ,GAAKC,IAAI,CAAG,CAAC;EAChE;EAEA,oBAAOR,KAAA,CAAAU,aAAA,CAACT,IAAI,EAAKO,IAAO,CAAC;AAC3B,CAAC;AAED,OAAO,SAASK,WAAWA,CAAAC,KAAA,EAAwC;EAAA,IAAvC;IAAEC,OAAO;IAAEC,QAAQ;IAAE,GAAGR;EAAY,CAAC,GAAAM,KAAA;EAC/D,IAAIZ,OAAO,EAAEO,cAAc,GAAG,CAAC,EAAE;IAC/B,oBACET,KAAA,CAAAU,aAAA,CAACR,OAAO,CAACe,MAAM,EAAAL,QAAA;MAACM,aAAa,EAAEH,OAAO,GAAG,CAAC,GAAG;IAAE,GAAKP,IAAI,GACrDQ,QACa,CAAC;EAErB;EAEA,oBACEhB,KAAA,CAAAU,aAAA,CAACX,kBAAkB,EAAAa,QAAA;IAACG,OAAO,EAAEA;EAAQ,GAAKP,IAAI,GAC3CQ,QACiB,CAAC;AAEzB"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Navigators
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { createDrawerNavigator } from './navigators/createDrawerNavigator';
|
|
5
5
|
/**
|
|
6
6
|
* Views
|
|
7
7
|
*/
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
8
|
+
export { DrawerContent } from './views/DrawerContent';
|
|
9
|
+
export { DrawerContentScrollView } from './views/DrawerContentScrollView';
|
|
10
|
+
export { DrawerItem } from './views/DrawerItem';
|
|
11
|
+
export { DrawerItemList } from './views/DrawerItemList';
|
|
12
|
+
export { DrawerToggleButton } from './views/DrawerToggleButton';
|
|
13
|
+
export { DrawerView } from './views/DrawerView';
|
|
14
14
|
/**
|
|
15
15
|
* Utilities
|
|
16
16
|
*/
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
17
|
+
export { DrawerStatusContext } from './utils/DrawerStatusContext';
|
|
18
|
+
export { getDrawerStatusFromState } from './utils/getDrawerStatusFromState';
|
|
19
|
+
export { useDrawerStatus } from './utils/useDrawerStatus';
|
|
20
20
|
export { DrawerGestureContext, DrawerProgressContext, useDrawerProgress, } from 'react-native-drawer-layout';
|
|
21
21
|
/**
|
|
22
22
|
* Types
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAE3E;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,YAAY,EACV,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,SAAS,CAAC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { type DefaultNavigatorOptions, type DrawerNavigationState, type DrawerRouterOptions, type ParamListBase } from '@react-navigation/native';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import type { DrawerNavigationConfig, DrawerNavigationEventMap, DrawerNavigationOptions } from '../types';
|
|
4
4
|
type Props = DefaultNavigatorOptions<ParamListBase, DrawerNavigationState<ParamListBase>, DrawerNavigationOptions, DrawerNavigationEventMap> & DrawerRouterOptions & DrawerNavigationConfig;
|
|
5
|
-
declare function DrawerNavigator({ id, initialRouteName, defaultStatus, backBehavior, children, screenListeners, screenOptions, ...rest }: Props): JSX.Element;
|
|
6
|
-
declare const
|
|
5
|
+
declare function DrawerNavigator({ id, initialRouteName, defaultStatus, backBehavior, children, layout, screenListeners, screenOptions, screenLayout, ...rest }: Props): React.JSX.Element;
|
|
6
|
+
export declare const createDrawerNavigator: {
|
|
7
7
|
<ParamList extends ParamListBase>(): import("@react-navigation/native").TypedNavigator<ParamList, DrawerNavigationState<ParamListBase>, DrawerNavigationOptions, DrawerNavigationEventMap, typeof DrawerNavigator>;
|
|
8
|
-
<ParamList_1 extends ParamListBase, Config extends import("
|
|
8
|
+
<ParamList_1 extends ParamListBase, Config extends import("@react-navigation/core/lib/typescript/src/StaticNavigation").StaticConfig<ParamList_1, DrawerNavigationState<ParamListBase>, DrawerNavigationOptions, DrawerNavigationEventMap, typeof DrawerNavigator>>(config: Config): import("@react-navigation/native").TypedNavigator<ParamList_1, DrawerNavigationState<ParamListBase>, DrawerNavigationOptions, DrawerNavigationEventMap, typeof DrawerNavigator> & {
|
|
9
9
|
config: Config;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=createDrawerNavigator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createDrawerNavigator.d.ts","sourceRoot":"","sources":["../../../../src/navigators/createDrawerNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAE5B,KAAK,qBAAqB,EAE1B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAGlB,KAAK,KAAK,GAAG,uBAAuB,CAClC,aAAa,EACb,qBAAqB,CAAC,aAAa,CAAC,EACpC,uBAAuB,EACvB,wBAAwB,CACzB,GACC,mBAAmB,GACnB,sBAAsB,CAAC;AAEzB,iBAAS,eAAe,CAAC,EACvB,EAAE,EACF,gBAAgB,EAChB,aAAwB,EACxB,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,eAAe,EACf,aAAa,EACb,YAAY,EACZ,GAAG,IAAI,EACR,EAAE,KAAK,qBA+BP;AAED,eAAO,MAAM,qBAAqB;;;;;CAKhB,CAAC"}
|
|
@@ -24,16 +24,6 @@ export type DrawerNavigationConfig = {
|
|
|
24
24
|
* Defaults to `true`.
|
|
25
25
|
*/
|
|
26
26
|
detachInactiveScreens?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Whether to use the legacy implementation based on Reanimated 1.
|
|
29
|
-
* The new implementation based on Reanimated 2 will perform better,
|
|
30
|
-
* but it's not possible to use Chrome remote debugger.
|
|
31
|
-
*
|
|
32
|
-
* This defaults to `true` if Reanimated 2 is not configured.
|
|
33
|
-
*
|
|
34
|
-
* Otherwise, it defaults to `false`
|
|
35
|
-
*/
|
|
36
|
-
useLegacyImplementation?: boolean;
|
|
37
27
|
};
|
|
38
28
|
export type DrawerNavigationOptions = HeaderOptions & {
|
|
39
29
|
/**
|
|
@@ -218,6 +208,40 @@ export type DrawerNavigationEventMap = {
|
|
|
218
208
|
data: undefined;
|
|
219
209
|
canPreventDefault: true;
|
|
220
210
|
};
|
|
211
|
+
/**
|
|
212
|
+
* Event which fires when a transition animation starts.
|
|
213
|
+
*/
|
|
214
|
+
transitionStart: {
|
|
215
|
+
data: {
|
|
216
|
+
closing: boolean;
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Event which fires when a transition animation ends.
|
|
221
|
+
*/
|
|
222
|
+
transitionEnd: {
|
|
223
|
+
data: {
|
|
224
|
+
closing: boolean;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Event which fires when navigation gesture starts.
|
|
229
|
+
*/
|
|
230
|
+
gestureStart: {
|
|
231
|
+
data: undefined;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Event which fires when navigation gesture is completed.
|
|
235
|
+
*/
|
|
236
|
+
gestureEnd: {
|
|
237
|
+
data: undefined;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Event which fires when navigation gesture is canceled.
|
|
241
|
+
*/
|
|
242
|
+
gestureCancel: {
|
|
243
|
+
data: undefined;
|
|
244
|
+
};
|
|
221
245
|
};
|
|
222
246
|
export type DrawerNavigationHelpers = NavigationHelpers<ParamListBase, DrawerNavigationEventMap> & DrawerActionHelpers<ParamListBase>;
|
|
223
247
|
export type DrawerNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = NavigationProp<ParamList, RouteName, NavigatorID, DrawerNavigationState<ParamList>, DrawerNavigationOptions, DrawerNavigationEventMap> & DrawerActionHelpers<ParamList>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,KAAK,EACL,SAAS,EACV,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EACV,iBAAiB,EACjB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,KAAK,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG;IACnC;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,KAA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,CAAC;AAEnE,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACnC,UAAU,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IACrD,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACrE,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpC,mBAAmB,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAC3C,kBAAkB,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAC1C,kBAAkB,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,OAAO,CAAC;IACtB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACpC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
export default _default;
|
|
2
|
+
export declare const DrawerPositionContext: React.Context<"left" | "right" | undefined>;
|
|
4
3
|
//# sourceMappingURL=DrawerPositionContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerPositionContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/DrawerPositionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"DrawerPositionContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/DrawerPositionContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,qBAAqB,6CAEtB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DrawerStatus } from '@react-navigation/native';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
declare const DrawerStatusContext: React.Context<DrawerStatus | undefined>;
|
|
4
|
-
export default DrawerStatusContext;
|
|
3
|
+
export declare const DrawerStatusContext: React.Context<DrawerStatus | undefined>;
|
|
5
4
|
//# sourceMappingURL=DrawerStatusContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerStatusContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/DrawerStatusContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,
|
|
1
|
+
{"version":3,"file":"DrawerStatusContext.d.ts","sourceRoot":"","sources":["../../../../src/utils/DrawerStatusContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,eAAO,MAAM,mBAAmB,yCAEpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addCancelListener.d.ts","sourceRoot":"","sources":["../../../../src/utils/addCancelListener.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,aAAc,MAAM,OAAO,eAYxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addCancelListener.native.d.ts","sourceRoot":"","sources":["../../../../src/utils/addCancelListener.native.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,aAAc,MAAM,OAAO,eASxD,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DrawerNavigationState, DrawerStatus, ParamListBase } from '@react-navigation/native';
|
|
2
|
-
export
|
|
2
|
+
export declare function getDrawerStatusFromState(state: DrawerNavigationState<ParamListBase>): DrawerStatus;
|
|
3
3
|
//# sourceMappingURL=getDrawerStatusFromState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDrawerStatusFromState.d.ts","sourceRoot":"","sources":["../../../../src/utils/getDrawerStatusFromState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACd,MAAM,0BAA0B,CAAC;AAElC,
|
|
1
|
+
{"version":3,"file":"getDrawerStatusFromState.d.ts","sourceRoot":"","sources":["../../../../src/utils/getDrawerStatusFromState.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,YAAY,EACZ,aAAa,EACd,MAAM,0BAA0B,CAAC;AAElC,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,qBAAqB,CAAC,aAAa,CAAC,GAC1C,YAAY,CAYd"}
|
|
@@ -3,5 +3,5 @@ import type { DrawerStatus } from '@react-navigation/native';
|
|
|
3
3
|
* Hook to detect if the drawer's status in a parent navigator.
|
|
4
4
|
* Returns 'open' if the drawer is open, 'closed' if the drawer is closed.
|
|
5
5
|
*/
|
|
6
|
-
export
|
|
6
|
+
export declare function useDrawerStatus(): DrawerStatus;
|
|
7
7
|
//# sourceMappingURL=useDrawerStatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerStatus.d.ts","sourceRoot":"","sources":["../../../../src/utils/useDrawerStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"useDrawerStatus.d.ts","sourceRoot":"","sources":["../../../../src/utils/useDrawerStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAU9C"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import type { DrawerContentComponentProps } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export declare function DrawerContent({ descriptors, state, ...rest }: DrawerContentComponentProps): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=DrawerContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerContent.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerContent.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"DrawerContent.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAI5D,wBAAgB,aAAa,CAAC,EAC5B,WAAW,EACX,KAAK,EACL,GAAG,IAAI,EACR,EAAE,2BAA2B,qBAgB7B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ScrollView, ScrollViewProps } from 'react-native';
|
|
3
|
-
declare const
|
|
2
|
+
import { ScrollView, type ScrollViewProps } from 'react-native';
|
|
3
|
+
export declare const DrawerContentScrollView: React.ForwardRefExoticComponent<ScrollViewProps & {
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
} & React.RefAttributes<ScrollView>>;
|
|
6
|
-
export default _default;
|
|
7
6
|
//# sourceMappingURL=DrawerContentScrollView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerContentScrollView.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerContentScrollView.tsx"],"names":[],"mappings":"
|
|
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,EAAE,UAAU,EAAE,KAAK,eAAe,EAAc,MAAM,cAAc,CAAC;AAyC5E,eAAO,MAAM,uBAAuB;cAnCxB,MAAM,SAAS;oCAqC1B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Route } from '@react-navigation/native';
|
|
1
|
+
import { type Route } from '@react-navigation/native';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
|
+
import { type StyleProp, type TextStyle, type ViewStyle } from 'react-native';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
6
|
* The route object which should be specified by the drawer item.
|
|
@@ -87,6 +87,6 @@ type Props = {
|
|
|
87
87
|
/**
|
|
88
88
|
* A component used to show an action item with an icon and a label in a navigation drawer.
|
|
89
89
|
*/
|
|
90
|
-
export
|
|
90
|
+
export declare function DrawerItem(props: Props): React.JSX.Element;
|
|
91
91
|
export {};
|
|
92
92
|
//# sourceMappingURL=DrawerItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerItem.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerItem.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
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,KA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jB,CAAC;AAEF;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,qBAuEtC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DrawerNavigationState, ParamListBase } from '@react-navigation/native';
|
|
1
|
+
import { type DrawerNavigationState, type ParamListBase } from '@react-navigation/native';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import type { DrawerDescriptorMap, DrawerNavigationHelpers } from '../types';
|
|
4
4
|
type Props = {
|
|
@@ -9,6 +9,6 @@ type Props = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Component that renders the navigation list in the drawer.
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export declare function DrawerItemList({ state, navigation, descriptors }: Props): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=DrawerItemList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerItemList.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerItemList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,qBAAqB,
|
|
1
|
+
{"version":3,"file":"DrawerItemList.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerItemList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAG7E,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC5C,UAAU,EAAE,uBAAuB,CAAC;IACpC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,KAAK,sEAoEvE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type Props = {
|
|
3
3
|
accessibilityLabel?: string;
|
|
4
4
|
pressColor?: string;
|
|
5
5
|
pressOpacity?: number;
|
|
6
6
|
tintColor?: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export declare function DrawerToggleButton({ tintColor, ...rest }: Props): React.JSX.Element;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=DrawerToggleButton.d.ts.map
|
|
@@ -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":"AAMA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,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,qBAsB/D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
1
|
+
import { type DrawerNavigationState, type DrawerStatus, type ParamListBase } from '@react-navigation/native';
|
|
2
|
+
import * as React from 'react';
|
|
3
3
|
import type { DrawerDescriptorMap, DrawerNavigationConfig, DrawerNavigationHelpers } from '../types';
|
|
4
4
|
type Props = DrawerNavigationConfig & {
|
|
5
5
|
defaultStatus: DrawerStatus;
|
|
@@ -7,6 +7,6 @@ type Props = DrawerNavigationConfig & {
|
|
|
7
7
|
navigation: DrawerNavigationHelpers;
|
|
8
8
|
descriptors: DrawerDescriptorMap;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export declare function DrawerView({ navigation, ...rest }: Props): React.JSX.Element;
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=DrawerView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerView.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DrawerView.d.ts","sourceRoot":"","sources":["../../../../src/views/DrawerView.tsx"],"names":[],"mappings":"AAOA,OAAO,EAEL,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,aAAa,EAGnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAEV,mBAAmB,EAEnB,sBAAsB,EACtB,uBAAuB,EAExB,MAAM,UAAU,CAAC;AASlB,KAAK,KAAK,GAAG,sBAAsB,GAAG;IACpC,aAAa,EAAE,YAAY,CAAC;IAC5B,KAAK,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IAC5C,UAAU,EAAE,uBAAuB,CAAC;IACpC,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AA6QF,wBAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,qBAMxD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import { type StyleProp, type ViewProps, type ViewStyle } from 'react-native';
|
|
3
3
|
type Props = {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -11,7 +11,7 @@ export declare const MaybeScreenContainer: ({ enabled, ...rest }: ViewProps & {
|
|
|
11
11
|
enabled: boolean;
|
|
12
12
|
hasTwoStates: boolean;
|
|
13
13
|
children: React.ReactNode;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export declare function MaybeScreen({ visible, children, ...rest }: Props): JSX.Element;
|
|
14
|
+
}) => React.JSX.Element;
|
|
15
|
+
export declare function MaybeScreen({ visible, children, ...rest }: Props): React.JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=ScreenFallback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenFallback.d.ts","sourceRoot":"","sources":["../../../../src/views/ScreenFallback.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,
|
|
1
|
+
{"version":3,"file":"ScreenFallback.d.ts","sourceRoot":"","sources":["../../../../src/views/ScreenFallback.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAUF,eAAO,MAAM,oBAAoB;aAItB,OAAO;kBACF,OAAO;cACX,MAAM,SAAS;uBAO1B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,qBAchE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-navigation/drawer",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"description": "Integration for the drawer component from react-native-drawer-layout",
|
|
4
|
+
"version": "7.0.0-alpha.10",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native-component",
|
|
7
7
|
"react-component",
|
|
@@ -41,33 +41,33 @@
|
|
|
41
41
|
"clean": "del lib"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@react-navigation/elements": "^
|
|
44
|
+
"@react-navigation/elements": "^2.0.0-alpha.7",
|
|
45
45
|
"color": "^4.2.3",
|
|
46
|
-
"react-native-drawer-layout": "^
|
|
46
|
+
"react-native-drawer-layout": "^4.0.0-alpha.4",
|
|
47
|
+
"use-latest-callback": "^0.1.9"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
|
-
"@react-navigation/native": "^7.0.0-alpha.
|
|
50
|
-
"@testing-library/react-native": "^
|
|
51
|
-
"@types/react": "~18.
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"react": "
|
|
55
|
-
"react-native": "0.
|
|
56
|
-
"react-native-
|
|
57
|
-
"react-native-
|
|
58
|
-
"react-native-
|
|
59
|
-
"react-native-
|
|
60
|
-
"
|
|
61
|
-
"typescript": "^4.9.4"
|
|
50
|
+
"@react-navigation/native": "^7.0.0-alpha.9",
|
|
51
|
+
"@testing-library/react-native": "^12.4.3",
|
|
52
|
+
"@types/react": "~18.2.45",
|
|
53
|
+
"del-cli": "^5.1.0",
|
|
54
|
+
"react": "18.2.0",
|
|
55
|
+
"react-native": "0.73.2",
|
|
56
|
+
"react-native-builder-bob": "^0.23.2",
|
|
57
|
+
"react-native-gesture-handler": "~2.14.0",
|
|
58
|
+
"react-native-reanimated": "~3.6.0",
|
|
59
|
+
"react-native-safe-area-context": "4.8.2",
|
|
60
|
+
"react-native-screens": "~3.29.0",
|
|
61
|
+
"typescript": "^5.3.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@react-navigation/native": "^
|
|
64
|
+
"@react-navigation/native": "^7.0.0-alpha.9",
|
|
65
65
|
"react": "*",
|
|
66
|
-
"react-native": "
|
|
67
|
-
"react-native-gesture-handler": "
|
|
68
|
-
"react-native-reanimated": "
|
|
69
|
-
"react-native-safe-area-context": "
|
|
70
|
-
"react-native-screens": "
|
|
66
|
+
"react-native": "0.73.2",
|
|
67
|
+
"react-native-gesture-handler": "~2.14.0",
|
|
68
|
+
"react-native-reanimated": "~3.6.0",
|
|
69
|
+
"react-native-safe-area-context": "4.8.2",
|
|
70
|
+
"react-native-screens": "~3.29.0"
|
|
71
71
|
},
|
|
72
72
|
"react-native-builder-bob": {
|
|
73
73
|
"source": "src",
|
|
@@ -83,5 +83,5 @@
|
|
|
83
83
|
]
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "c7b047dec7c75bda359a618d39a2aac4c2aea9c1"
|
|
87
87
|
}
|
package/src/index.tsx
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Navigators
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { createDrawerNavigator } from './navigators/createDrawerNavigator';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Views
|
|
8
8
|
*/
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
9
|
+
export { DrawerContent } from './views/DrawerContent';
|
|
10
|
+
export { DrawerContentScrollView } from './views/DrawerContentScrollView';
|
|
11
|
+
export { DrawerItem } from './views/DrawerItem';
|
|
12
|
+
export { DrawerItemList } from './views/DrawerItemList';
|
|
13
|
+
export { DrawerToggleButton } from './views/DrawerToggleButton';
|
|
14
|
+
export { DrawerView } from './views/DrawerView';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Utilities
|
|
18
18
|
*/
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
19
|
+
export { DrawerStatusContext } from './utils/DrawerStatusContext';
|
|
20
|
+
export { getDrawerStatusFromState } from './utils/getDrawerStatusFromState';
|
|
21
|
+
export { useDrawerStatus } from './utils/useDrawerStatus';
|
|
22
22
|
export {
|
|
23
23
|
DrawerGestureContext,
|
|
24
24
|
DrawerProgressContext,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createNavigatorFactory,
|
|
3
|
-
DefaultNavigatorOptions,
|
|
4
|
-
DrawerActionHelpers,
|
|
5
|
-
DrawerNavigationState,
|
|
3
|
+
type DefaultNavigatorOptions,
|
|
4
|
+
type DrawerActionHelpers,
|
|
5
|
+
type DrawerNavigationState,
|
|
6
6
|
DrawerRouter,
|
|
7
|
-
DrawerRouterOptions,
|
|
8
|
-
ParamListBase,
|
|
7
|
+
type DrawerRouterOptions,
|
|
8
|
+
type ParamListBase,
|
|
9
9
|
useNavigationBuilder,
|
|
10
10
|
} from '@react-navigation/native';
|
|
11
11
|
import * as React from 'react';
|
|
@@ -15,7 +15,7 @@ import type {
|
|
|
15
15
|
DrawerNavigationEventMap,
|
|
16
16
|
DrawerNavigationOptions,
|
|
17
17
|
} from '../types';
|
|
18
|
-
import DrawerView from '../views/DrawerView';
|
|
18
|
+
import { DrawerView } from '../views/DrawerView';
|
|
19
19
|
|
|
20
20
|
type Props = DefaultNavigatorOptions<
|
|
21
21
|
ParamListBase,
|
|
@@ -32,8 +32,10 @@ function DrawerNavigator({
|
|
|
32
32
|
defaultStatus = 'closed',
|
|
33
33
|
backBehavior,
|
|
34
34
|
children,
|
|
35
|
+
layout,
|
|
35
36
|
screenListeners,
|
|
36
37
|
screenOptions,
|
|
38
|
+
screenLayout,
|
|
37
39
|
...rest
|
|
38
40
|
}: Props) {
|
|
39
41
|
const { state, descriptors, navigation, NavigationContent } =
|
|
@@ -49,8 +51,10 @@ function DrawerNavigator({
|
|
|
49
51
|
defaultStatus,
|
|
50
52
|
backBehavior,
|
|
51
53
|
children,
|
|
54
|
+
layout,
|
|
52
55
|
screenListeners,
|
|
53
56
|
screenOptions,
|
|
57
|
+
screenLayout,
|
|
54
58
|
});
|
|
55
59
|
|
|
56
60
|
return (
|
|
@@ -66,7 +70,7 @@ function DrawerNavigator({
|
|
|
66
70
|
);
|
|
67
71
|
}
|
|
68
72
|
|
|
69
|
-
export
|
|
73
|
+
export const createDrawerNavigator = createNavigatorFactory<
|
|
70
74
|
DrawerNavigationState<ParamListBase>,
|
|
71
75
|
DrawerNavigationOptions,
|
|
72
76
|
DrawerNavigationEventMap,
|