react-native-drawer-layout 4.1.4 → 4.1.6
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/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/utils/DrawerGestureContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/DrawerProgressContext.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDrawerWidth.d.ts.map +1 -0
- package/lib/typescript/src/utils/useDrawerProgress.d.ts.map +1 -0
- package/lib/typescript/src/utils/useFakeSharedValue.d.ts.map +1 -0
- package/lib/typescript/src/views/Drawer.d.ts.map +1 -0
- package/lib/typescript/src/views/Drawer.native.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.android.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandler.ios.d.ts.map +1 -0
- package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -0
- package/lib/typescript/src/views/Overlay.d.ts.map +1 -0
- package/lib/typescript/src/views/Overlay.native.d.ts.map +1 -0
- package/package.json +10 -23
- package/lib/commonjs/index.js +0 -34
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/package.json +0 -1
- package/lib/commonjs/types.js +0 -6
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/DrawerGestureContext.js +0 -11
- package/lib/commonjs/utils/DrawerGestureContext.js.map +0 -1
- package/lib/commonjs/utils/DrawerProgressContext.js +0 -11
- package/lib/commonjs/utils/DrawerProgressContext.js.map +0 -1
- package/lib/commonjs/utils/getDrawerWidth.js +0 -39
- package/lib/commonjs/utils/getDrawerWidth.js.map +0 -1
- package/lib/commonjs/utils/useDrawerProgress.js +0 -18
- package/lib/commonjs/utils/useDrawerProgress.js.map +0 -1
- package/lib/commonjs/utils/useFakeSharedValue.js +0 -52
- package/lib/commonjs/utils/useFakeSharedValue.js.map +0 -1
- package/lib/commonjs/views/Drawer.js +0 -144
- package/lib/commonjs/views/Drawer.js.map +0 -1
- package/lib/commonjs/views/Drawer.native.js +0 -328
- package/lib/commonjs/views/Drawer.native.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.android.js +0 -17
- package/lib/commonjs/views/GestureHandler.android.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.ios.js +0 -17
- package/lib/commonjs/views/GestureHandler.ios.js.map +0 -1
- package/lib/commonjs/views/GestureHandler.js +0 -37
- package/lib/commonjs/views/GestureHandler.js.map +0 -1
- package/lib/commonjs/views/GestureHandlerNative.js +0 -31
- package/lib/commonjs/views/GestureHandlerNative.js.map +0 -1
- package/lib/commonjs/views/Overlay.js +0 -48
- package/lib/commonjs/views/Overlay.js.map +0 -1
- package/lib/commonjs/views/Overlay.native.js +0 -55
- package/lib/commonjs/views/Overlay.native.js.map +0 -1
- package/lib/typescript/commonjs/package.json +0 -1
- package/lib/typescript/commonjs/src/index.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/types.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/DrawerGestureContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/DrawerProgressContext.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/getDrawerWidth.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useDrawerProgress.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/utils/useFakeSharedValue.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Drawer.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Drawer.native.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Overlay.d.ts.map +0 -1
- package/lib/typescript/commonjs/src/views/Overlay.native.d.ts.map +0 -1
- package/lib/typescript/module/src/index.d.ts +0 -5
- package/lib/typescript/module/src/index.d.ts.map +0 -1
- package/lib/typescript/module/src/types.d.ts +0 -145
- package/lib/typescript/module/src/types.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/DrawerGestureContext.d.ts +0 -3
- package/lib/typescript/module/src/utils/DrawerGestureContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/DrawerProgressContext.d.ts +0 -4
- package/lib/typescript/module/src/utils/DrawerProgressContext.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/getDrawerWidth.d.ts +0 -9
- package/lib/typescript/module/src/utils/getDrawerWidth.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useDrawerProgress.d.ts +0 -3
- package/lib/typescript/module/src/utils/useDrawerProgress.d.ts.map +0 -1
- package/lib/typescript/module/src/utils/useFakeSharedValue.d.ts +0 -19
- package/lib/typescript/module/src/utils/useFakeSharedValue.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Drawer.d.ts +0 -3
- package/lib/typescript/module/src/views/Drawer.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Drawer.native.d.ts +0 -3
- package/lib/typescript/module/src/views/Drawer.native.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.android.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.d.ts +0 -21
- package/lib/typescript/module/src/views/GestureHandler.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts +0 -2
- package/lib/typescript/module/src/views/GestureHandler.ios.d.ts.map +0 -1
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts +0 -3
- package/lib/typescript/module/src/views/GestureHandlerNative.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Overlay.d.ts +0 -3
- package/lib/typescript/module/src/views/Overlay.d.ts.map +0 -1
- package/lib/typescript/module/src/views/Overlay.native.d.ts +0 -3
- package/lib/typescript/module/src/views/Overlay.native.d.ts.map +0 -1
- /package/lib/typescript/{module/package.json → package.json} +0 -0
- /package/lib/typescript/{commonjs/src → src}/index.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/types.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/DrawerGestureContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/DrawerProgressContext.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/getDrawerWidth.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useDrawerProgress.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/utils/useFakeSharedValue.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Drawer.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Drawer.native.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.android.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandler.ios.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/GestureHandlerNative.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Overlay.d.ts +0 -0
- /package/lib/typescript/{commonjs/src → src}/views/Overlay.native.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFakeSharedValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/useFakeSharedValue.tsx"],"names":[],"mappings":"AAEA,cAAM,eAAe;IACnB,UAAU,sBAA2B,MAAM,KAAK,IAAI,EAAI;IACxD,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,EAAE,MAAM;IAIzB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAIzD,cAAc,CAAC,EAAE,EAAE,MAAM;IAIzB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;IAI3C,GAAG;IAIH,GAAG,CAAC,KAAK,EAAE,MAAM;IAIjB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAMtB;IAED,IAAI,KAAK,IARQ,MAAM,CAUtB;IAED,wBAAwB,UAAQ;CACjC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAQjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAM5C,wBAAgB,MAAM,CAAC,EACrB,MAAM,EAAE,YAAY,EACpB,SAAiB,EACjB,cAAuD,EACvD,WAAW,EACX,UAAoB,EACpB,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,QAAQ,EACR,KAAK,GACN,EAAE,WAAW,2CAyIb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer.native.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAuB5C,wBAAgB,MAAM,CAAC,EACrB,MAAM,EAAE,YAAY,EACpB,SAA4D,EAC5D,cAAuD,EACvD,WAAW,EACX,UAAoB,EACpB,uBAAuB,EACvB,mBAA2B,EAC3B,mBAA+B,EAC/B,OAAO,EACP,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,yBAAyB,EACzB,kBAA4B,EAC5B,YAEyB,EACzB,cAAiC,EACjC,gBAAqC,EACrC,gBAAqC,EACrC,mBAAmB,EACnB,QAAQ,EACR,KAAK,GACN,EAAE,WAAW,2CAuZb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.android.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.android.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,+CAIzB,oBAAoB,4CAEtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAO,CAAC;AAE3C,eAAO,MAAM,OAAO,EAChB,cAAc,8BAA8B,EAAE,OAAO,GACrD,SAAqB,CAAC;AAE1B,0BAAkB,YAAY;IAC5B,YAAY,IAAI;IAChB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,SAAS,IAAI;IACb,MAAM,IAAI;IACV,GAAG,IAAI;CACR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.ios.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.ios.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerNative.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandlerNative.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,OAAO,EACP,eAAe,EACf,sBAAsB,EACtB,KAAK,IAAI,YAAY,GACtB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../../src/views/Overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,kBAAmC,EACnC,GAAG,IAAI,EACR,EAAE,YAAY,2CAoBd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/Overlay.native.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,kBAAmC,EACnC,GAAG,IAAI,EACR,EAAE,YAAY,2CA+Bd"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { DrawerGestureContext } from './utils/DrawerGestureContext';
|
|
2
|
-
export { DrawerProgressContext } from './utils/DrawerProgressContext';
|
|
3
|
-
export { useDrawerProgress } from './utils/useDrawerProgress';
|
|
4
|
-
export { Drawer } from './views/Drawer';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
-
import type { PanGesture } from 'react-native-gesture-handler';
|
|
4
|
-
import type { SharedValue } from 'react-native-reanimated';
|
|
5
|
-
export type Layout = {
|
|
6
|
-
width: number;
|
|
7
|
-
height: number;
|
|
8
|
-
};
|
|
9
|
-
export type DrawerProps = {
|
|
10
|
-
/**
|
|
11
|
-
* Whether the drawer is open or not.
|
|
12
|
-
*/
|
|
13
|
-
open: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Callback which is called when the drawer is opened.
|
|
16
|
-
*/
|
|
17
|
-
onOpen: () => void;
|
|
18
|
-
/**
|
|
19
|
-
* Callback which is called when the drawer is closed.
|
|
20
|
-
*/
|
|
21
|
-
onClose: () => void;
|
|
22
|
-
/**
|
|
23
|
-
* Callback which is called when a gesture starts.
|
|
24
|
-
*/
|
|
25
|
-
onGestureStart?: () => void;
|
|
26
|
-
/**
|
|
27
|
-
* Callback which is called when a gesture is cancelled.
|
|
28
|
-
*/
|
|
29
|
-
onGestureCancel?: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Callback which is called when a gesture ends.
|
|
32
|
-
*/
|
|
33
|
-
onGestureEnd?: () => void;
|
|
34
|
-
/**
|
|
35
|
-
* Callback which is called when the opening/closing transition starts.
|
|
36
|
-
*/
|
|
37
|
-
onTransitionStart?: (closing: boolean) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Callback which is called when the opening/closing transition ends.
|
|
40
|
-
*/
|
|
41
|
-
onTransitionEnd?: (closing: boolean) => void;
|
|
42
|
-
/**
|
|
43
|
-
* Callback which returns a react element to render as the content of the drawer.
|
|
44
|
-
*/
|
|
45
|
-
renderDrawerContent: () => React.ReactNode;
|
|
46
|
-
/**
|
|
47
|
-
* Object containing the layout of the container.
|
|
48
|
-
* Defaults to the dimensions of the application's window.
|
|
49
|
-
*/
|
|
50
|
-
layout?: {
|
|
51
|
-
width: number;
|
|
52
|
-
height: number;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Locale direction of the drawer.
|
|
56
|
-
* Defaults to `rtl` when `I18nManager.isRTL` is `true` on Android & iOS, otherwise `ltr`.
|
|
57
|
-
*/
|
|
58
|
-
direction?: 'ltr' | 'rtl';
|
|
59
|
-
/**
|
|
60
|
-
* Position of the drawer on the screen.
|
|
61
|
-
* Defaults to `right` in RTL mode, otherwise `left`.
|
|
62
|
-
*/
|
|
63
|
-
drawerPosition?: 'left' | 'right';
|
|
64
|
-
/**
|
|
65
|
-
* Type of the drawer. It determines how the drawer looks and animates.
|
|
66
|
-
* - `front`: Traditional drawer which covers the screen with a overlay behind it.
|
|
67
|
-
* - `back`: The drawer is revealed behind the screen on swipe.
|
|
68
|
-
* - `slide`: Both the screen and the drawer slide on swipe to reveal the drawer.
|
|
69
|
-
* - `permanent`: A permanent drawer is shown as a sidebar.
|
|
70
|
-
*
|
|
71
|
-
* Defaults to `slide` on iOS and `front` on other platforms.
|
|
72
|
-
*/
|
|
73
|
-
drawerType?: 'front' | 'back' | 'slide' | 'permanent';
|
|
74
|
-
/**
|
|
75
|
-
* Style object for the drawer component.
|
|
76
|
-
* You can pass a custom background color for drawer or a custom width here.
|
|
77
|
-
*/
|
|
78
|
-
drawerStyle?: StyleProp<ViewStyle>;
|
|
79
|
-
/**
|
|
80
|
-
* Style object for the drawer overlay.
|
|
81
|
-
*/
|
|
82
|
-
overlayStyle?: StyleProp<ViewStyle>;
|
|
83
|
-
/**
|
|
84
|
-
* Accessibility label for the overlay. This is read by the screen reader when the user taps the overlay.
|
|
85
|
-
* Defaults to "Close drawer".
|
|
86
|
-
*/
|
|
87
|
-
overlayAccessibilityLabel?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Whether the keyboard should be dismissed when the swipe gesture begins.
|
|
90
|
-
* Defaults to `'on-drag'`. Set to `'none'` to disable keyboard handling.
|
|
91
|
-
*/
|
|
92
|
-
keyboardDismissMode?: 'none' | 'on-drag';
|
|
93
|
-
/**
|
|
94
|
-
* Whether the statusbar should be hidden when the drawer is pulled or opens.
|
|
95
|
-
* Defaults to `false`.
|
|
96
|
-
*/
|
|
97
|
-
hideStatusBarOnOpen?: boolean;
|
|
98
|
-
/**
|
|
99
|
-
* Animation of the statusbar when hiding it. Use in combination with `hideStatusBarOnOpen`.
|
|
100
|
-
*/
|
|
101
|
-
statusBarAnimation?: 'slide' | 'fade' | 'none';
|
|
102
|
-
/**
|
|
103
|
-
* Whether you can use swipe gestures to open or close the drawer.
|
|
104
|
-
* Defaults to `true`.
|
|
105
|
-
* This is not supported on Web.
|
|
106
|
-
*/
|
|
107
|
-
swipeEnabled?: boolean;
|
|
108
|
-
/**
|
|
109
|
-
* How far from the edge of the screen the swipe gesture should activate.
|
|
110
|
-
* Defaults to `32`.
|
|
111
|
-
* This is not supported on Web.
|
|
112
|
-
*/
|
|
113
|
-
swipeEdgeWidth?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Minimum swipe distance that should activate opening the drawer.
|
|
116
|
-
* Defaults to `60`.
|
|
117
|
-
* This is not supported on Web.
|
|
118
|
-
*/
|
|
119
|
-
swipeMinDistance?: number;
|
|
120
|
-
/**
|
|
121
|
-
* Minimum swipe velocity that should activate opening the drawer.
|
|
122
|
-
* Defaults to `500`.
|
|
123
|
-
* This is not supported on Web.
|
|
124
|
-
*/
|
|
125
|
-
swipeMinVelocity?: number;
|
|
126
|
-
/**
|
|
127
|
-
* Function to modify the pan gesture handler via RNGH properties API.
|
|
128
|
-
*/
|
|
129
|
-
configureGestureHandler?: (gesture: PanGesture) => PanGesture;
|
|
130
|
-
/**
|
|
131
|
-
* Style object for the wrapper view.
|
|
132
|
-
*/
|
|
133
|
-
style?: StyleProp<ViewStyle>;
|
|
134
|
-
/**
|
|
135
|
-
* Content that the drawer should wrap.
|
|
136
|
-
*/
|
|
137
|
-
children: React.ReactNode;
|
|
138
|
-
};
|
|
139
|
-
export type OverlayProps = React.ComponentProps<typeof View> & {
|
|
140
|
-
open: boolean;
|
|
141
|
-
progress: SharedValue<number>;
|
|
142
|
-
onPress: () => void;
|
|
143
|
-
accessibilityLabel?: string;
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAE7B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAE1B;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,mBAAmB,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IAE3C;;;OAGG;IACH,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAE3C;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAE1B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAElC;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IAEtD;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEnC;;OAEG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAEpC;;;OAGG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEzC;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAE/C;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,uBAAuB,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,UAAU,CAAC;IAE9D;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,IAAI,CAAC,GAAG;IAC7D,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerGestureContext.d.ts","sourceRoot":"","sources":["../../../../../src/utils/DrawerGestureContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,oBAAoB,0HAEhC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DrawerProgressContext.d.ts","sourceRoot":"","sources":["../../../../../src/utils/DrawerProgressContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,eAAO,MAAM,qBAAqB,0DAEtB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
-
export declare function getDrawerWidth({ layout, drawerStyle, }: {
|
|
3
|
-
layout: {
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
};
|
|
7
|
-
drawerStyle?: StyleProp<ViewStyle>;
|
|
8
|
-
}): number;
|
|
9
|
-
//# sourceMappingURL=getDrawerWidth.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDrawerWidth.d.ts","sourceRoot":"","sources":["../../../../../src/utils/getDrawerWidth.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAkB1E,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,WAAW,GACZ,EAAE;IACD,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,WAAW,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACpC,UAcA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDrawerProgress.d.ts","sourceRoot":"","sources":["../../../../../src/utils/useDrawerProgress.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAI3D,wBAAgB,iBAAiB,IAAI,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAUjE"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare class FakeSharedValue {
|
|
2
|
-
_listeners: Map<number, (value: number) => void>;
|
|
3
|
-
_value: number;
|
|
4
|
-
constructor(value: number);
|
|
5
|
-
addListener(id: number, listener: (value: number) => void): void;
|
|
6
|
-
removeListener(id: number): void;
|
|
7
|
-
modify(modifier?: (value: number) => number): void;
|
|
8
|
-
get(): number;
|
|
9
|
-
set(value: number): void;
|
|
10
|
-
set value(value: number);
|
|
11
|
-
get value(): number;
|
|
12
|
-
_isReanimatedSharedValue: boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Compatibility layer for `useDrawerProgress` with `react-native-reanimated`
|
|
16
|
-
*/
|
|
17
|
-
export declare function useFakeSharedValue(value: number): FakeSharedValue;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=useFakeSharedValue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFakeSharedValue.d.ts","sourceRoot":"","sources":["../../../../../src/utils/useFakeSharedValue.tsx"],"names":[],"mappings":"AAEA,cAAM,eAAe;IACnB,UAAU,sBAA2B,MAAM,KAAK,IAAI,EAAI;IACxD,MAAM,EAAE,MAAM,CAAC;gBAEH,KAAK,EAAE,MAAM;IAIzB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI;IAIzD,cAAc,CAAC,EAAE,EAAE,MAAM;IAIzB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;IAI3C,GAAG;IAIH,GAAG,CAAC,KAAK,EAAE,MAAM;IAIjB,IAAI,KAAK,CAAC,KAAK,EAAE,MAAM,EAMtB;IAED,IAAI,KAAK,IARQ,MAAM,CAUtB;IAED,wBAAwB,UAAQ;CACjC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAQjE"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { DrawerProps } from '../types';
|
|
2
|
-
export declare function Drawer({ layout: customLayout, direction, drawerPosition, drawerStyle, drawerType, onClose, onTransitionStart, onTransitionEnd, open, overlayStyle, overlayAccessibilityLabel, renderDrawerContent, children, style, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAM5C,wBAAgB,MAAM,CAAC,EACrB,MAAM,EAAE,YAAY,EACpB,SAAiB,EACjB,cAAuD,EACvD,WAAW,EACX,UAAoB,EACpB,OAAO,EACP,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,yBAAyB,EACzB,mBAAmB,EACnB,QAAQ,EACR,KAAK,GACN,EAAE,WAAW,2CAyIb"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { DrawerProps } from '../types';
|
|
2
|
-
export declare function Drawer({ layout: customLayout, direction, drawerPosition, drawerStyle, drawerType, configureGestureHandler, hideStatusBarOnOpen, keyboardDismissMode, onClose, onOpen, onGestureStart, onGestureCancel, onGestureEnd, onTransitionStart, onTransitionEnd, open, overlayStyle, overlayAccessibilityLabel, statusBarAnimation, swipeEnabled, swipeEdgeWidth, swipeMinDistance, swipeMinVelocity, renderDrawerContent, children, style, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
//# sourceMappingURL=Drawer.native.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/Drawer.native.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAuB5C,wBAAgB,MAAM,CAAC,EACrB,MAAM,EAAE,YAAY,EACpB,SAA4D,EAC5D,cAAuD,EACvD,WAAW,EACX,UAAoB,EACpB,uBAAuB,EACvB,mBAA2B,EAC3B,mBAA+B,EAC/B,OAAO,EACP,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,yBAAyB,EACzB,kBAA4B,EAC5B,YAEyB,EACzB,cAAiC,EACjC,gBAAqC,EACrC,gBAAqC,EACrC,mBAAmB,EACnB,QAAQ,EACR,KAAK,GACN,EAAE,WAAW,2CAuZb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.android.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.android.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
3
|
-
import type { GestureType } from 'react-native-gesture-handler';
|
|
4
|
-
type GestureDetectorProps = {
|
|
5
|
-
gesture: GestureType | undefined;
|
|
6
|
-
userSelect?: 'none' | 'auto' | 'text';
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare const GestureDetector: ({ gesture: _0, userSelect: _1, children, }: GestureDetectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export declare const GestureHandlerRootView: typeof View;
|
|
11
|
-
export declare const Gesture: typeof import('react-native-gesture-handler').Gesture | undefined;
|
|
12
|
-
export declare const enum GestureState {
|
|
13
|
-
UNDETERMINED = 0,
|
|
14
|
-
FAILED = 1,
|
|
15
|
-
BEGAN = 2,
|
|
16
|
-
CANCELLED = 3,
|
|
17
|
-
ACTIVE = 4,
|
|
18
|
-
END = 5
|
|
19
|
-
}
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=GestureHandler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAKhE,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,eAAe,+CAIzB,oBAAoB,4CAEtB,CAAC;AAEF,eAAO,MAAM,sBAAsB,aAAO,CAAC;AAE3C,eAAO,MAAM,OAAO,EAChB,cAAc,8BAA8B,EAAE,OAAO,GACrD,SAAqB,CAAC;AAE1B,0BAAkB,YAAY;IAC5B,YAAY,IAAI;IAChB,MAAM,IAAI;IACV,KAAK,IAAI;IACT,SAAS,IAAI;IACb,MAAM,IAAI;IACV,GAAG,IAAI;CACR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandler.ios.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandler.ios.tsx"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GestureHandlerNative.d.ts","sourceRoot":"","sources":["../../../../../src/views/GestureHandlerNative.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,OAAO,EACP,eAAe,EACf,sBAAsB,EACtB,KAAK,IAAI,YAAY,GACtB,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../../src/views/Overlay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE7C,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,OAAO,EACP,KAAK,EACL,kBAAmC,EACnC,GAAG,IAAI,EACR,EAAE,YAAY,2CAoBd"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.native.d.ts","sourceRoot":"","sources":["../../../../../src/views/Overlay.native.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,wBAAgB,OAAO,CAAC,EACtB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,kBAAmC,EACnC,GAAG,IAAI,EACR,EAAE,YAAY,2CA+Bd"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|