react-native-drawer-layout 4.0.0-alpha.1 → 4.0.0-alpha.3
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/constants.js +5 -9
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/utils/DrawerGestureContext.js +3 -4
- package/lib/commonjs/utils/DrawerGestureContext.js.map +1 -1
- package/lib/commonjs/utils/DrawerProgressContext.js +3 -4
- package/lib/commonjs/utils/DrawerProgressContext.js.map +1 -1
- package/lib/commonjs/utils/useDrawerProgress.js +2 -2
- package/lib/commonjs/utils/useDrawerProgress.js.map +1 -1
- package/lib/commonjs/views/Drawer.js +285 -36
- package/lib/commonjs/views/Drawer.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.android.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.ios.js.map +1 -1
- package/lib/commonjs/views/GestureHandler.js +8 -12
- package/lib/commonjs/views/GestureHandler.js.map +1 -1
- package/lib/commonjs/views/GestureHandlerNative.js +2 -2
- package/lib/commonjs/views/GestureHandlerNative.js.map +1 -1
- package/lib/commonjs/views/{modern/Overlay.js → Overlay.js} +3 -4
- package/lib/commonjs/views/Overlay.js.map +1 -0
- package/lib/module/constants.js +1 -1
- package/lib/module/constants.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/utils/DrawerGestureContext.js.map +1 -1
- package/lib/module/utils/DrawerProgressContext.js.map +1 -1
- package/lib/module/utils/useDrawerProgress.js.map +1 -1
- package/lib/module/views/Drawer.js +285 -37
- package/lib/module/views/Drawer.js.map +1 -1
- package/lib/module/views/GestureHandler.android.js.map +1 -1
- package/lib/module/views/GestureHandler.ios.js.map +1 -1
- package/lib/module/views/GestureHandler.js +3 -3
- package/lib/module/views/GestureHandler.js.map +1 -1
- package/lib/module/views/GestureHandlerNative.js.map +1 -1
- package/lib/module/views/Overlay.js.map +1 -0
- package/lib/typescript/src/constants.d.ts +1 -1
- package/lib/typescript/src/constants.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +4 -0
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/lib/typescript/src/utils/DrawerProgressContext.d.ts +1 -1
- package/lib/typescript/src/utils/DrawerProgressContext.d.ts.map +1 -1
- package/lib/typescript/src/utils/useDrawerProgress.d.ts +1 -1
- package/lib/typescript/src/utils/useDrawerProgress.d.ts.map +1 -1
- package/lib/typescript/src/views/Drawer.d.ts +2 -17
- package/lib/typescript/src/views/Drawer.d.ts.map +1 -1
- package/lib/typescript/src/views/GestureHandlerNative.d.ts +3 -2
- package/lib/typescript/src/views/GestureHandlerNative.d.ts.map +1 -1
- package/lib/typescript/src/views/Overlay.d.ts +106 -0
- package/lib/typescript/src/views/Overlay.d.ts.map +1 -0
- package/package.json +10 -10
- package/src/constants.tsx +1 -1
- package/src/types.tsx +5 -0
- package/src/utils/DrawerProgressContext.tsx +1 -1
- package/src/utils/useDrawerProgress.tsx +1 -3
- package/src/views/Drawer.tsx +424 -62
- package/src/views/GestureHandlerNative.tsx +1 -1
- package/lib/commonjs/views/legacy/Drawer.js +0 -452
- package/lib/commonjs/views/legacy/Drawer.js.map +0 -1
- package/lib/commonjs/views/legacy/Overlay.js +0 -73
- package/lib/commonjs/views/legacy/Overlay.js.map +0 -1
- package/lib/commonjs/views/modern/Drawer.js +0 -308
- package/lib/commonjs/views/modern/Drawer.js.map +0 -1
- package/lib/commonjs/views/modern/Overlay.js.map +0 -1
- package/lib/module/views/legacy/Drawer.js +0 -442
- package/lib/module/views/legacy/Drawer.js.map +0 -1
- package/lib/module/views/legacy/Overlay.js +0 -63
- package/lib/module/views/legacy/Overlay.js.map +0 -1
- package/lib/module/views/modern/Drawer.js +0 -299
- package/lib/module/views/modern/Drawer.js.map +0 -1
- package/lib/module/views/modern/Overlay.js.map +0 -1
- package/lib/typescript/src/views/legacy/Drawer.d.ts +0 -51
- package/lib/typescript/src/views/legacy/Drawer.d.ts.map +0 -1
- package/lib/typescript/src/views/legacy/Overlay.d.ts +0 -104
- package/lib/typescript/src/views/legacy/Overlay.d.ts.map +0 -1
- package/lib/typescript/src/views/modern/Drawer.d.ts +0 -9
- package/lib/typescript/src/views/modern/Drawer.d.ts.map +0 -1
- package/lib/typescript/src/views/modern/Overlay.d.ts +0 -104
- package/lib/typescript/src/views/modern/Overlay.d.ts.map +0 -1
- package/src/views/legacy/Drawer.tsx +0 -690
- package/src/views/legacy/Overlay.tsx +0 -85
- package/src/views/modern/Drawer.tsx +0 -446
- /package/lib/module/views/{modern/Overlay.js → Overlay.js} +0 -0
- /package/src/views/{modern/Overlay.tsx → Overlay.tsx} +0 -0
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { InteractionManager, Keyboard, Platform, StatusBar, StyleSheet, View } from 'react-native';
|
|
4
|
-
import Animated, { interpolate, runOnJS, useAnimatedGestureHandler, useAnimatedStyle, useDerivedValue, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
5
|
-
import useLatestCallback from 'use-latest-callback';
|
|
6
|
-
import { DEFAULT_DRAWER_WIDTH, SWIPE_MIN_DISTANCE, SWIPE_MIN_OFFSET, SWIPE_MIN_VELOCITY } from '../../constants';
|
|
7
|
-
import { DrawerProgressContext } from '../../utils/DrawerProgressContext';
|
|
8
|
-
import { GestureState, PanGestureHandler } from '../GestureHandler';
|
|
9
|
-
import { Overlay } from './Overlay';
|
|
10
|
-
const minmax = (value, start, end) => {
|
|
11
|
-
'worklet';
|
|
12
|
-
|
|
13
|
-
return Math.min(Math.max(value, start), end);
|
|
14
|
-
};
|
|
15
|
-
export function Drawer(_ref) {
|
|
16
|
-
let {
|
|
17
|
-
layout,
|
|
18
|
-
drawerPosition,
|
|
19
|
-
drawerStyle,
|
|
20
|
-
drawerType,
|
|
21
|
-
gestureHandlerProps,
|
|
22
|
-
hideStatusBarOnOpen,
|
|
23
|
-
keyboardDismissMode,
|
|
24
|
-
onClose,
|
|
25
|
-
onOpen,
|
|
26
|
-
onGestureStart,
|
|
27
|
-
onGestureCancel,
|
|
28
|
-
onGestureEnd,
|
|
29
|
-
onTransitionStart,
|
|
30
|
-
onTransitionEnd,
|
|
31
|
-
open,
|
|
32
|
-
overlayStyle,
|
|
33
|
-
overlayAccessibilityLabel,
|
|
34
|
-
statusBarAnimation,
|
|
35
|
-
swipeEnabled,
|
|
36
|
-
swipeEdgeWidth,
|
|
37
|
-
swipeMinDistance = SWIPE_MIN_DISTANCE,
|
|
38
|
-
swipeMinVelocity = SWIPE_MIN_VELOCITY,
|
|
39
|
-
renderDrawerContent,
|
|
40
|
-
children
|
|
41
|
-
} = _ref;
|
|
42
|
-
const getDrawerWidth = () => {
|
|
43
|
-
const {
|
|
44
|
-
width = DEFAULT_DRAWER_WIDTH
|
|
45
|
-
} = StyleSheet.flatten(drawerStyle) || {};
|
|
46
|
-
if (typeof width === 'string' && width.endsWith('%')) {
|
|
47
|
-
// Try to calculate width if a percentage is given
|
|
48
|
-
const percentage = Number(width.replace(/%$/, ''));
|
|
49
|
-
if (Number.isFinite(percentage)) {
|
|
50
|
-
return layout.width * (percentage / 100);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return typeof width === 'number' ? width : 0;
|
|
54
|
-
};
|
|
55
|
-
const drawerWidth = getDrawerWidth();
|
|
56
|
-
const isOpen = drawerType === 'permanent' ? true : open;
|
|
57
|
-
const isRight = drawerPosition === 'right';
|
|
58
|
-
const getDrawerTranslationX = React.useCallback(open => {
|
|
59
|
-
'worklet';
|
|
60
|
-
|
|
61
|
-
if (drawerPosition === 'left') {
|
|
62
|
-
return open ? 0 : -drawerWidth;
|
|
63
|
-
}
|
|
64
|
-
return open ? 0 : drawerWidth;
|
|
65
|
-
}, [drawerPosition, drawerWidth]);
|
|
66
|
-
const hideStatusBar = React.useCallback(hide => {
|
|
67
|
-
if (hideStatusBarOnOpen) {
|
|
68
|
-
StatusBar.setHidden(hide, statusBarAnimation);
|
|
69
|
-
}
|
|
70
|
-
}, [hideStatusBarOnOpen, statusBarAnimation]);
|
|
71
|
-
React.useEffect(() => {
|
|
72
|
-
hideStatusBar(isOpen);
|
|
73
|
-
return () => hideStatusBar(false);
|
|
74
|
-
}, [isOpen, hideStatusBarOnOpen, statusBarAnimation, hideStatusBar]);
|
|
75
|
-
const interactionHandleRef = React.useRef(null);
|
|
76
|
-
const startInteraction = () => {
|
|
77
|
-
interactionHandleRef.current = InteractionManager.createInteractionHandle();
|
|
78
|
-
};
|
|
79
|
-
const endInteraction = () => {
|
|
80
|
-
if (interactionHandleRef.current != null) {
|
|
81
|
-
InteractionManager.clearInteractionHandle(interactionHandleRef.current);
|
|
82
|
-
interactionHandleRef.current = null;
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
const hideKeyboard = () => {
|
|
86
|
-
if (keyboardDismissMode === 'on-drag') {
|
|
87
|
-
Keyboard.dismiss();
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const onGestureBegin = () => {
|
|
91
|
-
onGestureStart === null || onGestureStart === void 0 ? void 0 : onGestureStart();
|
|
92
|
-
startInteraction();
|
|
93
|
-
hideKeyboard();
|
|
94
|
-
hideStatusBar(true);
|
|
95
|
-
};
|
|
96
|
-
const onGestureFinish = () => {
|
|
97
|
-
onGestureEnd === null || onGestureEnd === void 0 ? void 0 : onGestureEnd();
|
|
98
|
-
endInteraction();
|
|
99
|
-
};
|
|
100
|
-
const onGestureAbort = () => {
|
|
101
|
-
onGestureCancel === null || onGestureCancel === void 0 ? void 0 : onGestureCancel();
|
|
102
|
-
endInteraction();
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
// FIXME: Currently hitSlop is broken when on Android when drawer is on right
|
|
106
|
-
// https://github.com/software-mansion/react-native-gesture-handler/issues/569
|
|
107
|
-
const hitSlop = isRight ?
|
|
108
|
-
// Extend hitSlop to the side of the screen when drawer is closed
|
|
109
|
-
// This lets the user drag the drawer from the side of the screen
|
|
110
|
-
{
|
|
111
|
-
right: 0,
|
|
112
|
-
width: isOpen ? undefined : swipeEdgeWidth
|
|
113
|
-
} : {
|
|
114
|
-
left: 0,
|
|
115
|
-
width: isOpen ? undefined : swipeEdgeWidth
|
|
116
|
-
};
|
|
117
|
-
const touchStartX = useSharedValue(0);
|
|
118
|
-
const touchX = useSharedValue(0);
|
|
119
|
-
const translationX = useSharedValue(getDrawerTranslationX(open));
|
|
120
|
-
const gestureState = useSharedValue(GestureState.UNDETERMINED);
|
|
121
|
-
const handleAnimationStart = useLatestCallback(open => {
|
|
122
|
-
onTransitionStart === null || onTransitionStart === void 0 ? void 0 : onTransitionStart(!open);
|
|
123
|
-
});
|
|
124
|
-
const handleAnimationEnd = useLatestCallback((open, finished) => {
|
|
125
|
-
if (!finished) return;
|
|
126
|
-
onTransitionEnd === null || onTransitionEnd === void 0 ? void 0 : onTransitionEnd(!open);
|
|
127
|
-
});
|
|
128
|
-
const toggleDrawer = React.useCallback((open, velocity) => {
|
|
129
|
-
'worklet';
|
|
130
|
-
|
|
131
|
-
const translateX = getDrawerTranslationX(open);
|
|
132
|
-
if (velocity === undefined) {
|
|
133
|
-
runOnJS(handleAnimationStart)(open);
|
|
134
|
-
}
|
|
135
|
-
touchStartX.value = 0;
|
|
136
|
-
touchX.value = 0;
|
|
137
|
-
translationX.value = withSpring(translateX, {
|
|
138
|
-
velocity,
|
|
139
|
-
stiffness: 1000,
|
|
140
|
-
damping: 500,
|
|
141
|
-
mass: 3,
|
|
142
|
-
overshootClamping: true,
|
|
143
|
-
restDisplacementThreshold: 0.01,
|
|
144
|
-
restSpeedThreshold: 0.01
|
|
145
|
-
}, finished => runOnJS(handleAnimationEnd)(open, finished));
|
|
146
|
-
if (open) {
|
|
147
|
-
runOnJS(onOpen)();
|
|
148
|
-
} else {
|
|
149
|
-
runOnJS(onClose)();
|
|
150
|
-
}
|
|
151
|
-
}, [getDrawerTranslationX, handleAnimationEnd, handleAnimationStart, onClose, onOpen, touchStartX, touchX, translationX]);
|
|
152
|
-
React.useEffect(() => toggleDrawer(open), [open, toggleDrawer]);
|
|
153
|
-
const onGestureEvent = useAnimatedGestureHandler({
|
|
154
|
-
onStart: (event, ctx) => {
|
|
155
|
-
ctx.hasCalledOnStart = false;
|
|
156
|
-
ctx.startX = translationX.value;
|
|
157
|
-
gestureState.value = event.state;
|
|
158
|
-
touchStartX.value = event.x;
|
|
159
|
-
},
|
|
160
|
-
onCancel: () => {
|
|
161
|
-
runOnJS(onGestureAbort)();
|
|
162
|
-
},
|
|
163
|
-
onActive: (event, ctx) => {
|
|
164
|
-
touchX.value = event.x;
|
|
165
|
-
translationX.value = ctx.startX + event.translationX;
|
|
166
|
-
gestureState.value = event.state;
|
|
167
|
-
|
|
168
|
-
// onStart will _always_ be called, even when the activation
|
|
169
|
-
// criteria isn't met yet. This makes sure onGestureBegin is only
|
|
170
|
-
// called when the criteria is really met.
|
|
171
|
-
if (!ctx.hasCalledOnStart) {
|
|
172
|
-
ctx.hasCalledOnStart = true;
|
|
173
|
-
runOnJS(onGestureBegin)();
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
onEnd: event => {
|
|
177
|
-
gestureState.value = event.state;
|
|
178
|
-
const nextOpen = Math.abs(event.translationX) > SWIPE_MIN_OFFSET && Math.abs(event.translationX) > swipeMinVelocity || Math.abs(event.translationX) > swipeMinDistance ? drawerPosition === 'left' ?
|
|
179
|
-
// If swiped to right, open the drawer, otherwise close it
|
|
180
|
-
(event.velocityX === 0 ? event.translationX : event.velocityX) > 0 :
|
|
181
|
-
// If swiped to left, open the drawer, otherwise close it
|
|
182
|
-
(event.velocityX === 0 ? event.translationX : event.velocityX) < 0 : open;
|
|
183
|
-
toggleDrawer(nextOpen, event.velocityX);
|
|
184
|
-
},
|
|
185
|
-
onFinish: () => {
|
|
186
|
-
runOnJS(onGestureFinish)();
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
const translateX = useDerivedValue(() => {
|
|
190
|
-
// Comment stolen from react-native-gesture-handler/DrawerLayout
|
|
191
|
-
//
|
|
192
|
-
// While closing the drawer when user starts gesture outside of its area (in greyed
|
|
193
|
-
// out part of the window), we want the drawer to follow only once finger reaches the
|
|
194
|
-
// edge of the drawer.
|
|
195
|
-
// E.g. on the diagram below drawer is illustrate by X signs and the greyed out area by
|
|
196
|
-
// dots. The touch gesture starts at '*' and moves left, touch path is indicated by
|
|
197
|
-
// an arrow pointing left
|
|
198
|
-
// 1) +---------------+ 2) +---------------+ 3) +---------------+ 4) +---------------+
|
|
199
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
200
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
201
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
202
|
-
// |XXXXXXXX|......| |XXXXXXXX|.<-*..| |XXXXXXXX|<--*..| |XXXXX|<-----*..|
|
|
203
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
204
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
205
|
-
// |XXXXXXXX|......| |XXXXXXXX|......| |XXXXXXXX|......| |XXXXX|.........|
|
|
206
|
-
// +---------------+ +---------------+ +---------------+ +---------------+
|
|
207
|
-
//
|
|
208
|
-
// For the above to work properly we define animated value that will keep start position
|
|
209
|
-
// of the gesture. Then we use that value to calculate how much we need to subtract from
|
|
210
|
-
// the translationX. If the gesture started on the greyed out area we take the distance from the
|
|
211
|
-
// edge of the drawer to the start position. Otherwise we don't subtract at all and the
|
|
212
|
-
// drawer be pulled back as soon as you start the pan.
|
|
213
|
-
//
|
|
214
|
-
// This is used only when drawerType is "front"
|
|
215
|
-
const touchDistance = drawerType === 'front' && gestureState.value === GestureState.ACTIVE ? minmax(drawerPosition === 'left' ? touchStartX.value - drawerWidth : layout.width - drawerWidth - touchStartX.value, 0, layout.width) : 0;
|
|
216
|
-
const translateX = drawerPosition === 'left' ? minmax(translationX.value + touchDistance, -drawerWidth, 0) : minmax(translationX.value - touchDistance, 0, drawerWidth);
|
|
217
|
-
return translateX;
|
|
218
|
-
});
|
|
219
|
-
const drawerAnimatedStyle = useAnimatedStyle(() => {
|
|
220
|
-
return {
|
|
221
|
-
transform: drawerType === 'permanent' ?
|
|
222
|
-
// Reanimated needs the property to be present, but it results in Browser bug
|
|
223
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=20574
|
|
224
|
-
[] : [{
|
|
225
|
-
translateX:
|
|
226
|
-
// The drawer stays in place when `drawerType` is `back`
|
|
227
|
-
drawerType === 'back' ? 0 : translateX.value
|
|
228
|
-
}]
|
|
229
|
-
};
|
|
230
|
-
});
|
|
231
|
-
const contentAnimatedStyle = useAnimatedStyle(() => {
|
|
232
|
-
return {
|
|
233
|
-
transform: drawerType === 'permanent' ?
|
|
234
|
-
// Reanimated needs the property to be present, but it results in Browser bug
|
|
235
|
-
// https://bugs.chromium.org/p/chromium/issues/detail?id=20574
|
|
236
|
-
[] : [{
|
|
237
|
-
translateX:
|
|
238
|
-
// The screen content stays in place when `drawerType` is `front`
|
|
239
|
-
drawerType === 'front' ? 0 : translateX.value + drawerWidth * (drawerPosition === 'left' ? 1 : -1)
|
|
240
|
-
}]
|
|
241
|
-
};
|
|
242
|
-
});
|
|
243
|
-
const progress = useDerivedValue(() => {
|
|
244
|
-
return drawerType === 'permanent' ? 1 : interpolate(translateX.value, [getDrawerTranslationX(false), getDrawerTranslationX(true)], [0, 1]);
|
|
245
|
-
});
|
|
246
|
-
return /*#__PURE__*/React.createElement(DrawerProgressContext.Provider, {
|
|
247
|
-
value: progress
|
|
248
|
-
}, /*#__PURE__*/React.createElement(PanGestureHandler, _extends({
|
|
249
|
-
activeOffsetX: [-SWIPE_MIN_OFFSET, SWIPE_MIN_OFFSET],
|
|
250
|
-
failOffsetY: [-SWIPE_MIN_OFFSET, SWIPE_MIN_OFFSET],
|
|
251
|
-
hitSlop: hitSlop,
|
|
252
|
-
enabled: drawerType !== 'permanent' && swipeEnabled,
|
|
253
|
-
onGestureEvent: onGestureEvent
|
|
254
|
-
}, gestureHandlerProps), /*#__PURE__*/React.createElement(Animated.View, {
|
|
255
|
-
style: [styles.main, {
|
|
256
|
-
flexDirection: drawerType === 'permanent' && !isRight ? 'row-reverse' : 'row'
|
|
257
|
-
}]
|
|
258
|
-
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
259
|
-
style: [styles.content, contentAnimatedStyle]
|
|
260
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
261
|
-
accessibilityElementsHidden: isOpen && drawerType !== 'permanent',
|
|
262
|
-
importantForAccessibility: isOpen && drawerType !== 'permanent' ? 'no-hide-descendants' : 'auto',
|
|
263
|
-
style: styles.content
|
|
264
|
-
}, children), drawerType !== 'permanent' ? /*#__PURE__*/React.createElement(Overlay, {
|
|
265
|
-
progress: progress,
|
|
266
|
-
onPress: () => toggleDrawer(false),
|
|
267
|
-
style: overlayStyle,
|
|
268
|
-
accessibilityLabel: overlayAccessibilityLabel
|
|
269
|
-
}) : null), /*#__PURE__*/React.createElement(Animated.View, {
|
|
270
|
-
removeClippedSubviews: Platform.OS !== 'ios',
|
|
271
|
-
style: [styles.container, {
|
|
272
|
-
position: drawerType === 'permanent' ? 'relative' : 'absolute',
|
|
273
|
-
zIndex: drawerType === 'back' ? -1 : 0
|
|
274
|
-
}, drawerAnimatedStyle, drawerStyle]
|
|
275
|
-
}, renderDrawerContent()))));
|
|
276
|
-
}
|
|
277
|
-
const styles = StyleSheet.create({
|
|
278
|
-
container: {
|
|
279
|
-
top: 0,
|
|
280
|
-
bottom: 0,
|
|
281
|
-
maxWidth: '100%',
|
|
282
|
-
width: DEFAULT_DRAWER_WIDTH
|
|
283
|
-
},
|
|
284
|
-
content: {
|
|
285
|
-
flex: 1
|
|
286
|
-
},
|
|
287
|
-
main: {
|
|
288
|
-
flex: 1,
|
|
289
|
-
...Platform.select({
|
|
290
|
-
// FIXME: We need to hide `overflowX` on Web so the translated content doesn't show offscreen.
|
|
291
|
-
// But adding `overflowX: 'hidden'` prevents content from collapsing the URL bar.
|
|
292
|
-
web: null,
|
|
293
|
-
default: {
|
|
294
|
-
overflow: 'hidden'
|
|
295
|
-
}
|
|
296
|
-
})
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
//# sourceMappingURL=Drawer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","InteractionManager","Keyboard","Platform","StatusBar","StyleSheet","View","Animated","interpolate","runOnJS","useAnimatedGestureHandler","useAnimatedStyle","useDerivedValue","useSharedValue","withSpring","useLatestCallback","DEFAULT_DRAWER_WIDTH","SWIPE_MIN_DISTANCE","SWIPE_MIN_OFFSET","SWIPE_MIN_VELOCITY","DrawerProgressContext","GestureState","PanGestureHandler","Overlay","minmax","value","start","end","Math","min","max","Drawer","layout","drawerPosition","drawerStyle","drawerType","gestureHandlerProps","hideStatusBarOnOpen","keyboardDismissMode","onClose","onOpen","onGestureStart","onGestureCancel","onGestureEnd","onTransitionStart","onTransitionEnd","open","overlayStyle","overlayAccessibilityLabel","statusBarAnimation","swipeEnabled","swipeEdgeWidth","swipeMinDistance","swipeMinVelocity","renderDrawerContent","children","getDrawerWidth","width","flatten","endsWith","percentage","Number","replace","isFinite","drawerWidth","isOpen","isRight","getDrawerTranslationX","useCallback","hideStatusBar","hide","setHidden","useEffect","interactionHandleRef","useRef","startInteraction","current","createInteractionHandle","endInteraction","clearInteractionHandle","hideKeyboard","dismiss","onGestureBegin","onGestureFinish","onGestureAbort","hitSlop","right","undefined","left","touchStartX","touchX","translationX","gestureState","UNDETERMINED","handleAnimationStart","handleAnimationEnd","finished","toggleDrawer","velocity","translateX","stiffness","damping","mass","overshootClamping","restDisplacementThreshold","restSpeedThreshold","onGestureEvent","onStart","event","ctx","hasCalledOnStart","startX","state","x","onCancel","onActive","onEnd","nextOpen","abs","velocityX","onFinish","touchDistance","ACTIVE","drawerAnimatedStyle","transform","contentAnimatedStyle","progress","styles","main","flexDirection","content","OS","container","position","zIndex","create","top","bottom","maxWidth","flex","select","web","default","overflow"],"sourceRoot":"../../../../src","sources":["views/modern/Drawer.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SACEC,kBAAkB,EAClBC,QAAQ,EACRC,QAAQ,EACRC,SAAS,EACTC,UAAU,EACVC,IAAI,QACC,cAAc;AACrB,OAAOC,QAAQ,IACbC,WAAW,EACXC,OAAO,EACPC,yBAAyB,EACzBC,gBAAgB,EAChBC,eAAe,EACfC,cAAc,EACdC,UAAU,QACL,yBAAyB;AAChC,OAAOC,iBAAiB,MAAM,qBAAqB;AAEnD,SACEC,oBAAoB,EACpBC,kBAAkB,EAClBC,gBAAgB,EAChBC,kBAAkB,QACb,iBAAiB;AAExB,SAASC,qBAAqB,QAAQ,mCAAmC;AACzE,SACEC,YAAY,EACZC,iBAAiB,QAEZ,mBAAmB;AAC1B,SAASC,OAAO,QAAQ,WAAW;AAEnC,MAAMC,MAAM,GAAG,CAACC,KAAa,EAAEC,KAAa,EAAEC,GAAW,KAAK;EAC5D,SAAS;;EAET,OAAOC,IAAI,CAACC,GAAG,CAACD,IAAI,CAACE,GAAG,CAACL,KAAK,EAAEC,KAAK,CAAC,EAAEC,GAAG,CAAC;AAC9C,CAAC;AAMD,OAAO,SAASI,MAAM,OAyBZ;EAAA,IAzBa;IACrBC,MAAM;IACNC,cAAc;IACdC,WAAW;IACXC,UAAU;IACVC,mBAAmB;IACnBC,mBAAmB;IACnBC,mBAAmB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EC;EAA0B,EAC9C,GACA,IAAI,CACM,eAChB,oBAAC,QAAQ,CAAC,IAAI;IACZ,qBAAqB,EAAE7C,QAAQ,CAACgI,EAAE,KAAK,KAAM;IAC7C,KAAK,EAAE,CACLJ,MAAM,CAACK,SAAS,EAChB;MACEC,QAAQ,EAAElG,UAAU,KAAK,WAAW,GAAG,UAAU,GAAG,UAAU;MAC9DmG,MAAM,EAAEnG,UAAU,KAAK,MAAM,GAAG,CAAC,CAAC,GAAG;IACvC,CAAC,EACDwF,mBAAmB,EACnBzF,WAAW;EACX,GAEDoB,mBAAmB,EAAE,CACR,CACF,CACE,CACW;AAErC;AAEA,MAAMyE,MAAM,GAAG1H,UAAU,CAACkI,MAAM,CAAC;EAC/BH,SAAS,EAAE;IACTI,GAAG,EAAE,CAAC;IACNC,MAAM,EAAE,CAAC;IACTC,QAAQ,EAAE,MAAM;IAChBjF,KAAK,EAAEzC;EACT,CAAC;EACDkH,OAAO,EAAE;IACPS,IAAI,EAAE;EACR,CAAC;EACDX,IAAI,EAAE;IACJW,IAAI,EAAE,CAAC;IACP,GAAGxI,QAAQ,CAACyI,MAAM,CAAC;MACjB;MACA;MACAC,GAAG,EAAE,IAAI;MACTC,OAAO,EAAE;QAAEC,QAAQ,EAAE;MAAS;IAChC,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","Platform","Pressable","StyleSheet","Animated","useAnimatedProps","useAnimatedStyle","PROGRESS_EPSILON","Overlay","forwardRef","ref","progress","onPress","style","accessibilityLabel","props","animatedStyle","opacity","value","zIndex","animatedProps","active","pointerEvents","accessibilityElementsHidden","importantForAccessibility","styles","overlay","overlayStyle","pressable","select","web","WebkitTapHighlightColor","default","create","absoluteFillObject","backgroundColor","flex"],"sourceRoot":"../../../../src","sources":["views/modern/Overlay.tsx"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,SAAS,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;EAC3DC,GAAG,EAAE;IACH;IACA;IACAC,uBAAuB,EAAE;EAC3B,CAAC;EACDC,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAMP,MAAM,GAAGtB,UAAU,CAAC8B,MAAM,CAAC;EAC/BP,OAAO,EAAE;IACP,GAAGvB,UAAU,CAAC+B,kBAAkB;IAChCC,eAAe,EAAE;EACnB,CAAC;EACDP,SAAS,EAAE;IACTQ,IAAI,EAAE,CAAC;IACPd,aAAa,EAAE;EACjB;AACF,CAAC,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import type { DrawerProps } from '../../types';
|
|
3
|
-
type Props = DrawerProps & {
|
|
4
|
-
layout: {
|
|
5
|
-
width: number;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare class Drawer extends React.Component<Props> {
|
|
9
|
-
componentDidUpdate(prevProps: Props): void;
|
|
10
|
-
componentWillUnmount(): void;
|
|
11
|
-
private handleEndInteraction;
|
|
12
|
-
private handleStartInteraction;
|
|
13
|
-
private getDrawerWidth;
|
|
14
|
-
private clock;
|
|
15
|
-
private interactionHandle;
|
|
16
|
-
private isDrawerTypeFront;
|
|
17
|
-
private isOpen;
|
|
18
|
-
private nextIsOpen;
|
|
19
|
-
private isSwiping;
|
|
20
|
-
private initialDrawerWidth;
|
|
21
|
-
private gestureState;
|
|
22
|
-
private touchX;
|
|
23
|
-
private velocityX;
|
|
24
|
-
private gestureX;
|
|
25
|
-
private offsetX;
|
|
26
|
-
private position;
|
|
27
|
-
private containerWidth;
|
|
28
|
-
private drawerWidth;
|
|
29
|
-
private drawerOpacity;
|
|
30
|
-
private drawerPosition;
|
|
31
|
-
private touchDistanceFromDrawer;
|
|
32
|
-
private swipeDistanceThreshold;
|
|
33
|
-
private swipeVelocityThreshold;
|
|
34
|
-
private currentOpenValue;
|
|
35
|
-
private pendingOpenValue;
|
|
36
|
-
private isStatusBarHidden;
|
|
37
|
-
private manuallyTriggerSpring;
|
|
38
|
-
private transitionTo;
|
|
39
|
-
private dragX;
|
|
40
|
-
private translateX;
|
|
41
|
-
private progress;
|
|
42
|
-
private handleGestureEvent;
|
|
43
|
-
private handleGestureStateChange;
|
|
44
|
-
private handleContainerLayout;
|
|
45
|
-
private handleDrawerLayout;
|
|
46
|
-
private toggleDrawer;
|
|
47
|
-
private toggleStatusBar;
|
|
48
|
-
render(): JSX.Element;
|
|
49
|
-
}
|
|
50
|
-
export {};
|
|
51
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/views/legacy/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAkB/B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAuD/C,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B,CAAC;AAEF,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC;IAChD,kBAAkB,CAAC,SAAS,EAAE,KAAK;IA+CnC,oBAAoB;IAKpB,OAAO,CAAC,oBAAoB,CAK1B;IAEF,OAAO,CAAC,sBAAsB,CAI5B;IAEF,OAAO,CAAC,cAAc,CAepB;IAEF,OAAO,CAAC,KAAK,CAAe;IAC5B,OAAO,CAAC,iBAAiB,CAAqB;IAE9C,OAAO,CAAC,iBAAiB,CAEvB;IAEF,OAAO,CAAC,MAAM,CAAqD;IACnE,OAAO,CAAC,UAAU,CAAiC;IACnD,OAAO,CAAC,SAAS,CAA4B;IAE7C,OAAO,CAAC,kBAAkB,CAAyB;IAEnD,OAAO,CAAC,YAAY,CAAgD;IACpE,OAAO,CAAC,MAAM,CAAwB;IACtC,OAAO,CAAC,SAAS,CAAwB;IACzC,OAAO,CAAC,QAAQ,CAAwB;IACxC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,QAAQ,CAOd;IAEF,OAAO,CAAC,cAAc,CAA8C;IACpE,OAAO,CAAC,WAAW,CAA8C;IACjE,OAAO,CAAC,aAAa,CAEnB;IACF,OAAO,CAAC,cAAc,CAEpB;IA2BF,OAAO,CAAC,uBAAuB,CAsB7B;IAEF,OAAO,CAAC,sBAAsB,CAE5B;IACF,OAAO,CAAC,sBAAsB,CAE5B;IAEF,OAAO,CAAC,gBAAgB,CAA4B;IACpD,OAAO,CAAC,gBAAgB,CAAsB;IAE9C,OAAO,CAAC,iBAAiB,CAAkB;IAE3C,OAAO,CAAC,qBAAqB,CAA4B;IAEzD,OAAO,CAAC,YAAY,CAsDlB;IAEF,OAAO,CAAC,KAAK,CAiIV;IAEH,OAAO,CAAC,UAAU,CAIhB;IAEF,OAAO,CAAC,QAAQ,CAKd;IAEF,OAAO,CAAC,kBAAkB,CAQvB;IAEH,OAAO,CAAC,wBAAwB,CAM7B;IAEH,OAAO,CAAC,qBAAqB,CAC8B;IAE3D,OAAO,CAAC,kBAAkB,CAUxB;IAEF,OAAO,CAAC,YAAY,CAQlB;IAEF,OAAO,CAAC,eAAe,CAQrB;IAEF,MAAM;CAwJP"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Animated from 'react-native-reanimated';
|
|
3
|
-
export declare const Overlay: React.ForwardRefExoticComponent<{
|
|
4
|
-
children?: React.ReactNode | Animated.Node<React.ReactNode>;
|
|
5
|
-
hitSlop?: import("react-native").Insets | Animated.Node<import("react-native").Insets | undefined> | undefined;
|
|
6
|
-
id?: string | Animated.Node<string | undefined> | undefined;
|
|
7
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | Animated.Node<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
8
|
-
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | Animated.Node<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
9
|
-
removeClippedSubviews?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
10
|
-
testID?: string | Animated.Node<string | undefined> | undefined;
|
|
11
|
-
nativeID?: string | Animated.Node<string | undefined> | undefined;
|
|
12
|
-
collapsable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
13
|
-
needsOffscreenAlphaCompositing?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
14
|
-
renderToHardwareTextureAndroid?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
15
|
-
focusable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
16
|
-
shouldRasterizeIOS?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
17
|
-
isTVSelectable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
18
|
-
hasTVPreferredFocus?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
19
|
-
tvParallaxProperties?: import("react-native").TVParallaxProperties | Animated.Node<import("react-native").TVParallaxProperties | undefined> | undefined;
|
|
20
|
-
tvParallaxShiftDistanceX?: number | Animated.Node<number | undefined> | undefined;
|
|
21
|
-
tvParallaxShiftDistanceY?: number | Animated.Node<number | undefined> | undefined;
|
|
22
|
-
tvParallaxTiltAngle?: number | Animated.Node<number | undefined> | undefined;
|
|
23
|
-
tvParallaxMagnification?: number | Animated.Node<number | undefined> | undefined;
|
|
24
|
-
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
25
|
-
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
26
|
-
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
27
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
28
|
-
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
29
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
30
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
31
|
-
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
32
|
-
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
33
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
34
|
-
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
35
|
-
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
36
|
-
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
37
|
-
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
38
|
-
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
39
|
-
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
40
|
-
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
41
|
-
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
42
|
-
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
43
|
-
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
44
|
-
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
45
|
-
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
46
|
-
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
47
|
-
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
48
|
-
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
49
|
-
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
50
|
-
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
51
|
-
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
52
|
-
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
53
|
-
accessible?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
54
|
-
accessibilityActions?: readonly Readonly<{
|
|
55
|
-
name: string;
|
|
56
|
-
label?: string | undefined;
|
|
57
|
-
}>[] | Animated.Node<readonly Readonly<{
|
|
58
|
-
name: string;
|
|
59
|
-
label?: string | undefined;
|
|
60
|
-
}>[] | undefined> | undefined;
|
|
61
|
-
accessibilityLabel?: string | Animated.Node<string | undefined> | undefined;
|
|
62
|
-
'aria-label'?: string | Animated.Node<string | undefined> | undefined;
|
|
63
|
-
accessibilityRole?: import("react-native").AccessibilityRole | Animated.Node<import("react-native").AccessibilityRole | undefined> | undefined;
|
|
64
|
-
accessibilityState?: import("react-native").AccessibilityState | Animated.Node<import("react-native").AccessibilityState | undefined> | undefined;
|
|
65
|
-
'aria-busy'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
66
|
-
'aria-checked'?: boolean | "mixed" | Animated.Node<boolean | "mixed" | undefined> | undefined;
|
|
67
|
-
'aria-disabled'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
68
|
-
'aria-expanded'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
69
|
-
'aria-selected'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
70
|
-
'aria-labelledby'?: string | Animated.Node<string | undefined> | undefined;
|
|
71
|
-
accessibilityHint?: string | Animated.Node<string | undefined> | undefined;
|
|
72
|
-
accessibilityValue?: import("react-native").AccessibilityValue | Animated.Node<import("react-native").AccessibilityValue | undefined> | undefined;
|
|
73
|
-
'aria-valuemax'?: number | Animated.Node<number | undefined> | undefined;
|
|
74
|
-
'aria-valuemin'?: number | Animated.Node<number | undefined> | undefined;
|
|
75
|
-
'aria-valuenow'?: number | Animated.Node<number | undefined> | undefined;
|
|
76
|
-
'aria-valuetext'?: string | Animated.Node<string | undefined> | undefined;
|
|
77
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | Animated.Node<((event: import("react-native").AccessibilityActionEvent) => void) | undefined> | undefined;
|
|
78
|
-
importantForAccessibility?: "auto" | "no-hide-descendants" | "yes" | "no" | Animated.Node<"auto" | "no-hide-descendants" | "yes" | "no" | undefined> | undefined;
|
|
79
|
-
'aria-hidden'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
80
|
-
'aria-live'?: "polite" | "assertive" | "off" | Animated.Node<"polite" | "assertive" | "off" | undefined> | undefined;
|
|
81
|
-
'aria-modal'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
82
|
-
role?: import("react-native").Role | Animated.Node<import("react-native").Role | undefined> | undefined;
|
|
83
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | Animated.Node<"none" | "polite" | "assertive" | undefined> | undefined;
|
|
84
|
-
accessibilityLabelledBy?: string | string[] | Animated.Node<string | string[] | undefined> | undefined;
|
|
85
|
-
accessibilityElementsHidden?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
86
|
-
accessibilityViewIsModal?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
87
|
-
onAccessibilityEscape?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
88
|
-
onAccessibilityTap?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
89
|
-
onMagicTap?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
90
|
-
accessibilityIgnoresInvertColors?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
91
|
-
accessibilityLanguage?: string | Animated.Node<string | undefined> | undefined;
|
|
92
|
-
} & {
|
|
93
|
-
style?: import("react-native").StyleProp<Animated.AnimateStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>>;
|
|
94
|
-
} & {
|
|
95
|
-
animatedProps?: Partial<Animated.AnimateProps<import("react-native").ViewProps>> | undefined;
|
|
96
|
-
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
97
|
-
entering?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated").Keyframe | undefined;
|
|
98
|
-
exiting?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated").Keyframe | undefined;
|
|
99
|
-
} & {
|
|
100
|
-
progress: Animated.Node<number>;
|
|
101
|
-
onPress: () => void;
|
|
102
|
-
accessibilityLabel?: string | undefined;
|
|
103
|
-
} & React.RefAttributes<Animated.View>>;
|
|
104
|
-
//# sourceMappingURL=Overlay.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Overlay.d.ts","sourceRoot":"","sources":["../../../../../src/views/legacy/Overlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAqB/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cALR,aAAa,CAAC,MAAM,CAAC;aACtB,MAAM,IAAI;;uCA8CnB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { DrawerProps } from '../../types';
|
|
2
|
-
type Props = DrawerProps & {
|
|
3
|
-
layout: {
|
|
4
|
-
width: number;
|
|
5
|
-
};
|
|
6
|
-
};
|
|
7
|
-
export declare function Drawer({ layout, drawerPosition, drawerStyle, drawerType, gestureHandlerProps, hideStatusBarOnOpen, keyboardDismissMode, onClose, onOpen, onGestureStart, onGestureCancel, onGestureEnd, onTransitionStart, onTransitionEnd, open, overlayStyle, overlayAccessibilityLabel, statusBarAnimation, swipeEnabled, swipeEdgeWidth, swipeMinDistance, swipeMinVelocity, renderDrawerContent, children, }: Props): JSX.Element;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../../src/views/modern/Drawer.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAe/C,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,MAAM,CAAC,EACrB,MAAM,EACN,cAAc,EACd,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,IAAI,EACJ,YAAY,EACZ,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,gBAAqC,EACrC,gBAAqC,EACrC,mBAAmB,EACnB,QAAQ,GACT,EAAE,KAAK,eAkWP"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import Animated from 'react-native-reanimated';
|
|
3
|
-
export declare const Overlay: React.ForwardRefExoticComponent<{
|
|
4
|
-
children?: React.ReactNode | Animated.Node<React.ReactNode>;
|
|
5
|
-
hitSlop?: import("react-native").Insets | Animated.Node<import("react-native").Insets | undefined> | undefined;
|
|
6
|
-
id?: string | Animated.Node<string | undefined> | undefined;
|
|
7
|
-
onLayout?: ((event: import("react-native").LayoutChangeEvent) => void) | Animated.Node<((event: import("react-native").LayoutChangeEvent) => void) | undefined> | undefined;
|
|
8
|
-
pointerEvents?: "none" | "auto" | "box-none" | "box-only" | Animated.Node<"none" | "auto" | "box-none" | "box-only" | undefined> | undefined;
|
|
9
|
-
removeClippedSubviews?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
10
|
-
testID?: string | Animated.Node<string | undefined> | undefined;
|
|
11
|
-
nativeID?: string | Animated.Node<string | undefined> | undefined;
|
|
12
|
-
collapsable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
13
|
-
needsOffscreenAlphaCompositing?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
14
|
-
renderToHardwareTextureAndroid?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
15
|
-
focusable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
16
|
-
shouldRasterizeIOS?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
17
|
-
isTVSelectable?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
18
|
-
hasTVPreferredFocus?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
19
|
-
tvParallaxProperties?: import("react-native").TVParallaxProperties | Animated.Node<import("react-native").TVParallaxProperties | undefined> | undefined;
|
|
20
|
-
tvParallaxShiftDistanceX?: number | Animated.Node<number | undefined> | undefined;
|
|
21
|
-
tvParallaxShiftDistanceY?: number | Animated.Node<number | undefined> | undefined;
|
|
22
|
-
tvParallaxTiltAngle?: number | Animated.Node<number | undefined> | undefined;
|
|
23
|
-
tvParallaxMagnification?: number | Animated.Node<number | undefined> | undefined;
|
|
24
|
-
onStartShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
25
|
-
onMoveShouldSetResponder?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
26
|
-
onResponderEnd?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
27
|
-
onResponderGrant?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
28
|
-
onResponderReject?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
29
|
-
onResponderMove?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
30
|
-
onResponderRelease?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
31
|
-
onResponderStart?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
32
|
-
onResponderTerminationRequest?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
33
|
-
onResponderTerminate?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
34
|
-
onStartShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
35
|
-
onMoveShouldSetResponderCapture?: ((event: import("react-native").GestureResponderEvent) => boolean) | Animated.Node<((event: import("react-native").GestureResponderEvent) => boolean) | undefined> | undefined;
|
|
36
|
-
onTouchStart?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
37
|
-
onTouchMove?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
38
|
-
onTouchEnd?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
39
|
-
onTouchCancel?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
40
|
-
onTouchEndCapture?: ((event: import("react-native").GestureResponderEvent) => void) | Animated.Node<((event: import("react-native").GestureResponderEvent) => void) | undefined> | undefined;
|
|
41
|
-
onPointerEnter?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
42
|
-
onPointerEnterCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
43
|
-
onPointerLeave?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
44
|
-
onPointerLeaveCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
45
|
-
onPointerMove?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
46
|
-
onPointerMoveCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
47
|
-
onPointerCancel?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
48
|
-
onPointerCancelCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
49
|
-
onPointerDown?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
50
|
-
onPointerDownCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
51
|
-
onPointerUp?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
52
|
-
onPointerUpCapture?: ((event: import("react-native").PointerEvent) => void) | Animated.Node<((event: import("react-native").PointerEvent) => void) | undefined> | undefined;
|
|
53
|
-
accessible?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
54
|
-
accessibilityActions?: readonly Readonly<{
|
|
55
|
-
name: string;
|
|
56
|
-
label?: string | undefined;
|
|
57
|
-
}>[] | Animated.Node<readonly Readonly<{
|
|
58
|
-
name: string;
|
|
59
|
-
label?: string | undefined;
|
|
60
|
-
}>[] | undefined> | undefined;
|
|
61
|
-
accessibilityLabel?: string | Animated.Node<string | undefined> | undefined;
|
|
62
|
-
'aria-label'?: string | Animated.Node<string | undefined> | undefined;
|
|
63
|
-
accessibilityRole?: import("react-native").AccessibilityRole | Animated.Node<import("react-native").AccessibilityRole | undefined> | undefined;
|
|
64
|
-
accessibilityState?: import("react-native").AccessibilityState | Animated.Node<import("react-native").AccessibilityState | undefined> | undefined;
|
|
65
|
-
'aria-busy'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
66
|
-
'aria-checked'?: boolean | "mixed" | Animated.Node<boolean | "mixed" | undefined> | undefined;
|
|
67
|
-
'aria-disabled'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
68
|
-
'aria-expanded'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
69
|
-
'aria-selected'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
70
|
-
'aria-labelledby'?: string | Animated.Node<string | undefined> | undefined;
|
|
71
|
-
accessibilityHint?: string | Animated.Node<string | undefined> | undefined;
|
|
72
|
-
accessibilityValue?: import("react-native").AccessibilityValue | Animated.Node<import("react-native").AccessibilityValue | undefined> | undefined;
|
|
73
|
-
'aria-valuemax'?: number | Animated.Node<number | undefined> | undefined;
|
|
74
|
-
'aria-valuemin'?: number | Animated.Node<number | undefined> | undefined;
|
|
75
|
-
'aria-valuenow'?: number | Animated.Node<number | undefined> | undefined;
|
|
76
|
-
'aria-valuetext'?: string | Animated.Node<string | undefined> | undefined;
|
|
77
|
-
onAccessibilityAction?: ((event: import("react-native").AccessibilityActionEvent) => void) | Animated.Node<((event: import("react-native").AccessibilityActionEvent) => void) | undefined> | undefined;
|
|
78
|
-
importantForAccessibility?: "auto" | "no-hide-descendants" | "yes" | "no" | Animated.Node<"auto" | "no-hide-descendants" | "yes" | "no" | undefined> | undefined;
|
|
79
|
-
'aria-hidden'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
80
|
-
'aria-live'?: "polite" | "assertive" | "off" | Animated.Node<"polite" | "assertive" | "off" | undefined> | undefined;
|
|
81
|
-
'aria-modal'?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
82
|
-
role?: import("react-native").Role | Animated.Node<import("react-native").Role | undefined> | undefined;
|
|
83
|
-
accessibilityLiveRegion?: "none" | "polite" | "assertive" | Animated.Node<"none" | "polite" | "assertive" | undefined> | undefined;
|
|
84
|
-
accessibilityLabelledBy?: string | string[] | Animated.Node<string | string[] | undefined> | undefined;
|
|
85
|
-
accessibilityElementsHidden?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
86
|
-
accessibilityViewIsModal?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
87
|
-
onAccessibilityEscape?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
88
|
-
onAccessibilityTap?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
89
|
-
onMagicTap?: (() => void) | Animated.Node<(() => void) | undefined> | undefined;
|
|
90
|
-
accessibilityIgnoresInvertColors?: boolean | Animated.Node<boolean | undefined> | undefined;
|
|
91
|
-
accessibilityLanguage?: string | Animated.Node<string | undefined> | undefined;
|
|
92
|
-
} & {
|
|
93
|
-
style?: import("react-native").StyleProp<Animated.AnimateStyle<import("react-native").StyleProp<import("react-native").ViewStyle>>>;
|
|
94
|
-
} & {
|
|
95
|
-
animatedProps?: Partial<Animated.AnimateProps<import("react-native").ViewProps>> | undefined;
|
|
96
|
-
layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder | undefined;
|
|
97
|
-
entering?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated").Keyframe | undefined;
|
|
98
|
-
exiting?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated").Keyframe | undefined;
|
|
99
|
-
} & {
|
|
100
|
-
progress: Animated.SharedValue<number>;
|
|
101
|
-
onPress: () => void;
|
|
102
|
-
accessibilityLabel?: string | undefined;
|
|
103
|
-
} & React.RefAttributes<Animated.View>>;
|
|
104
|
-
//# sourceMappingURL=Overlay.d.ts.map
|