ncore-react-native-sheet 1.0.0-alpha.0
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/LICENSE +21 -0
- package/README.md +7 -0
- package/lib/commonjs/constants.js +10 -0
- package/lib/commonjs/constants.js.map +1 -0
- package/lib/commonjs/index.js +494 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/styles.js +53 -0
- package/lib/commonjs/styles.js.map +1 -0
- package/lib/commonjs/types.js +8 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/module/constants.js +6 -0
- package/lib/module/constants.js.map +1 -0
- package/lib/module/index.js +488 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/styles.js +49 -0
- package/lib/module/styles.js.map +1 -0
- package/lib/module/types.js +6 -0
- package/lib/module/types.js.map +1 -0
- package/lib/typescript/src/constants.d.ts +3 -0
- package/lib/typescript/src/constants.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/styles.d.ts +45 -0
- package/lib/typescript/src/styles.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +44 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/package.json +149 -0
- package/src/constants.ts +6 -0
- package/src/index.tsx +631 -0
- package/src/styles.ts +51 -0
- package/src/types.ts +54 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 nibgat
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.windowWidth = exports.windowHeight = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
const windowHeight = exports.windowHeight = _reactNative.Dimensions.get("window").height;
|
|
9
|
+
const windowWidth = exports.windowWidth = _reactNative.Dimensions.get("window").width;
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","windowHeight","exports","Dimensions","get","height","windowWidth","width"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIO,MAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAGE,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AACpD,MAAMC,WAAW,GAAAJ,OAAA,CAAAI,WAAA,GAAGH,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACG,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _styles = _interopRequireDefault(require("./styles"));
|
|
10
|
+
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
11
|
+
var _constants = require("./constants");
|
|
12
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
14
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
15
|
+
const ANIMATION_TO_SNAP_DURATION = 75;
|
|
16
|
+
const ANIMATION_CLOSE_DURATION = 400;
|
|
17
|
+
const ANIMATION_OPEN_DURATION = 300;
|
|
18
|
+
const VELOCITY_CLOSE = 1.2;
|
|
19
|
+
const Sheet = ({
|
|
20
|
+
handlerColor = "#c4c2c2",
|
|
21
|
+
panGestureEnabled = true,
|
|
22
|
+
snapPoint: snapPointProp,
|
|
23
|
+
isCanFullScreenOnSnap,
|
|
24
|
+
withSafeArea = true,
|
|
25
|
+
handler = "inside",
|
|
26
|
+
autoHeight = true,
|
|
27
|
+
headerComponent,
|
|
28
|
+
footerComponent,
|
|
29
|
+
scrollViewProps,
|
|
30
|
+
onOverlayPress,
|
|
31
|
+
withFullScreen,
|
|
32
|
+
flatListProps,
|
|
33
|
+
contentStyle,
|
|
34
|
+
overlayStyle,
|
|
35
|
+
rootStyle,
|
|
36
|
+
onClosed,
|
|
37
|
+
onOpened,
|
|
38
|
+
children,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => {
|
|
41
|
+
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
42
|
+
let maxHeight = withSafeArea ? _constants.windowHeight - insets.top : _constants.windowHeight;
|
|
43
|
+
let snapPoint = snapPointProp || maxHeight;
|
|
44
|
+
const [isVisible, setIsVisible] = (0, _react.useState)(false);
|
|
45
|
+
const contentContainerHeight = (0, _react.useRef)(0);
|
|
46
|
+
const headerContainerHeight = (0, _react.useRef)(0);
|
|
47
|
+
const isScrollable = (0, _react.useRef)(false);
|
|
48
|
+
const contentHeight = (0, _react.useRef)(0);
|
|
49
|
+
const listHeight = (0, _react.useRef)(0);
|
|
50
|
+
const moveHeight = (0, _react.useRef)(new _reactNative.Animated.Value(snapPoint)).current;
|
|
51
|
+
const beforeYPosition = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
52
|
+
const height = (0, _react.useRef)(new _reactNative.Animated.Value(snapPoint)).current;
|
|
53
|
+
const overlayOpacity = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
54
|
+
const moveYPosition = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
55
|
+
const opening = (0, _react.useRef)(new _reactNative.Animated.Value(0)).current;
|
|
56
|
+
const isAtBottomRef = (0, _react.useRef)(false);
|
|
57
|
+
const scrollOffsetRef = (0, _react.useRef)(0);
|
|
58
|
+
const isScrolling = (0, _react.useRef)(false);
|
|
59
|
+
const flatListRef = (0, _react.useRef)(null);
|
|
60
|
+
(0, _react.useEffect)(() => {
|
|
61
|
+
isAtBottomRef.current = false;
|
|
62
|
+
scrollOffsetRef.current = 0;
|
|
63
|
+
if (snapPointProp && snapPointProp > _constants.windowHeight || withFullScreen) {
|
|
64
|
+
snapPoint = maxHeight;
|
|
65
|
+
}
|
|
66
|
+
}, []);
|
|
67
|
+
const checkScrollability = (contentH, listH) => {
|
|
68
|
+
if (listH > 0 && contentH > listH) {
|
|
69
|
+
isScrollable.current = true;
|
|
70
|
+
} else {
|
|
71
|
+
isScrollable.current = false;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
const calculateAutoHeight = (contentHeight, headerHeight) => {
|
|
75
|
+
moveHeight.setValue(contentHeight + headerHeight);
|
|
76
|
+
height.setValue(contentHeight + headerHeight);
|
|
77
|
+
snapPoint = contentHeight + headerHeight;
|
|
78
|
+
};
|
|
79
|
+
(0, _react.useImperativeHandle)(ref, () => ({
|
|
80
|
+
close,
|
|
81
|
+
open
|
|
82
|
+
}), []);
|
|
83
|
+
const open = () => {
|
|
84
|
+
opening.setValue(1);
|
|
85
|
+
openAnimate();
|
|
86
|
+
setTimeout(() => {
|
|
87
|
+
if (onOpened) onOpened();
|
|
88
|
+
opening.setValue(0);
|
|
89
|
+
}, ANIMATION_OPEN_DURATION);
|
|
90
|
+
};
|
|
91
|
+
const close = () => {
|
|
92
|
+
closeAnimate();
|
|
93
|
+
setTimeout(() => {
|
|
94
|
+
if (flatListProps && flatListProps.data?.length) {
|
|
95
|
+
flatListRef?.current?.scrollToIndex({
|
|
96
|
+
index: 0,
|
|
97
|
+
animated: false
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
if (onClosed) onClosed();
|
|
101
|
+
}, ANIMATION_CLOSE_DURATION);
|
|
102
|
+
};
|
|
103
|
+
const openAnimate = () => {
|
|
104
|
+
setIsVisible(true);
|
|
105
|
+
let toValue = (withFullScreen ? withSafeArea ? _constants.windowHeight - insets.top : _constants.windowHeight : snapPoint) * -1;
|
|
106
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(moveYPosition, {
|
|
107
|
+
toValue: toValue,
|
|
108
|
+
useNativeDriver: false,
|
|
109
|
+
duration: ANIMATION_OPEN_DURATION
|
|
110
|
+
}), _reactNative.Animated.timing(overlayOpacity, {
|
|
111
|
+
toValue: .1,
|
|
112
|
+
useNativeDriver: false,
|
|
113
|
+
duration: ANIMATION_OPEN_DURATION
|
|
114
|
+
}), _reactNative.Animated.timing(beforeYPosition, {
|
|
115
|
+
toValue: toValue,
|
|
116
|
+
useNativeDriver: false,
|
|
117
|
+
duration: ANIMATION_OPEN_DURATION
|
|
118
|
+
})]).start();
|
|
119
|
+
};
|
|
120
|
+
const closeAnimate = () => {
|
|
121
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(beforeYPosition, {
|
|
122
|
+
toValue: 50,
|
|
123
|
+
useNativeDriver: false,
|
|
124
|
+
duration: ANIMATION_CLOSE_DURATION
|
|
125
|
+
}), _reactNative.Animated.timing(moveYPosition, {
|
|
126
|
+
toValue: 50,
|
|
127
|
+
useNativeDriver: false,
|
|
128
|
+
duration: ANIMATION_CLOSE_DURATION
|
|
129
|
+
}), _reactNative.Animated.timing(height, {
|
|
130
|
+
toValue: snapPoint,
|
|
131
|
+
useNativeDriver: false,
|
|
132
|
+
duration: ANIMATION_CLOSE_DURATION
|
|
133
|
+
}), _reactNative.Animated.timing(moveHeight, {
|
|
134
|
+
toValue: snapPoint,
|
|
135
|
+
useNativeDriver: false,
|
|
136
|
+
duration: ANIMATION_CLOSE_DURATION
|
|
137
|
+
}), _reactNative.Animated.timing(overlayOpacity, {
|
|
138
|
+
toValue: 0,
|
|
139
|
+
useNativeDriver: false,
|
|
140
|
+
duration: ANIMATION_CLOSE_DURATION
|
|
141
|
+
})]).start(e => {
|
|
142
|
+
if (e.finished) {
|
|
143
|
+
setIsVisible(false);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
const disableScroll = () => {
|
|
148
|
+
if (flatListProps) {
|
|
149
|
+
flatListRef.current?.setNativeProps({
|
|
150
|
+
scrollEnabled: false
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const enableScroll = () => {
|
|
155
|
+
isAtBottomRef.current = false;
|
|
156
|
+
if (flatListProps) {
|
|
157
|
+
flatListRef.current?.setNativeProps({
|
|
158
|
+
scrollEnabled: true
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
const onMoveShouldSetPanResponderContent = (e, gestureState) => {
|
|
163
|
+
const {
|
|
164
|
+
dy
|
|
165
|
+
} = gestureState;
|
|
166
|
+
if (!isScrolling) {
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// FlatList scroll ediyorsa panResponder devreye girmesin
|
|
171
|
+
if (scrollOffsetRef.current < 0 && dy < 0) {
|
|
172
|
+
// flatlist altta değilken yukarı kaydırma scroll'a gitmeli
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// FlatList alttayken yukarı çekiyorsa → devreye girsin
|
|
177
|
+
if (isAtBottomRef.current && dy < 0) {
|
|
178
|
+
return true;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Aşağı çekme (her zaman sheet)
|
|
182
|
+
if (dy > 5 && scrollOffsetRef.current <= 0) {
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
if (!isScrollable.current) {
|
|
186
|
+
return true;
|
|
187
|
+
}
|
|
188
|
+
return false;
|
|
189
|
+
};
|
|
190
|
+
const onPanResponderGrant = (e, gestureState) => {
|
|
191
|
+
const {
|
|
192
|
+
dy,
|
|
193
|
+
dx,
|
|
194
|
+
y0
|
|
195
|
+
} = gestureState;
|
|
196
|
+
disableScroll();
|
|
197
|
+
|
|
198
|
+
// @ts-ignore
|
|
199
|
+
const extra = height._value - snapPoint;
|
|
200
|
+
|
|
201
|
+
// @ts-ignore
|
|
202
|
+
beforeYPosition.setValue(beforeYPosition._value - extra);
|
|
203
|
+
height.setValue(snapPoint);
|
|
204
|
+
};
|
|
205
|
+
const onPanResponderMove = (e, gestureState) => {
|
|
206
|
+
const {
|
|
207
|
+
dy,
|
|
208
|
+
moveY
|
|
209
|
+
} = gestureState;
|
|
210
|
+
|
|
211
|
+
// @ts-ignore
|
|
212
|
+
const _beforeYPosition = beforeYPosition._value;
|
|
213
|
+
const newYPosition = _beforeYPosition + dy;
|
|
214
|
+
if (newYPosition > -snapPoint) {
|
|
215
|
+
// Snap altı
|
|
216
|
+
moveHeight.setValue(snapPoint);
|
|
217
|
+
moveYPosition.setValue(newYPosition);
|
|
218
|
+
} else {
|
|
219
|
+
// Snap üstü
|
|
220
|
+
if (!panGestureEnabled) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
const absNewY = Math.abs(newYPosition);
|
|
224
|
+
const extra = Math.max(0, absNewY - snapPoint);
|
|
225
|
+
const expandedHeight = Math.min(snapPoint + extra, maxHeight);
|
|
226
|
+
moveHeight.setValue(expandedHeight);
|
|
227
|
+
moveYPosition.setValue(-snapPoint);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
const onPanResponderEnd = (e, gestureState) => {
|
|
231
|
+
const {
|
|
232
|
+
vy,
|
|
233
|
+
dy
|
|
234
|
+
} = gestureState;
|
|
235
|
+
enableScroll();
|
|
236
|
+
// @ts-ignore
|
|
237
|
+
const moveHeightValue = moveHeight._value;
|
|
238
|
+
// @ts-ignore
|
|
239
|
+
const currentYValue = moveYPosition._value;
|
|
240
|
+
const isBelowSnap = moveHeightValue === snapPoint;
|
|
241
|
+
|
|
242
|
+
// @ts-ignore
|
|
243
|
+
const _moveYPosition = moveHeight._value;
|
|
244
|
+
let targetHeight = snapPoint;
|
|
245
|
+
let targetY = snapPoint * -1;
|
|
246
|
+
if (vy > VELOCITY_CLOSE) {
|
|
247
|
+
close();
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const dists = {
|
|
251
|
+
distToTop: {
|
|
252
|
+
value: isBelowSnap && !withFullScreen ? _constants.windowHeight * 10 : Math.abs(moveHeightValue - _constants.windowHeight),
|
|
253
|
+
action: () => {
|
|
254
|
+
targetHeight = maxHeight;
|
|
255
|
+
targetY = snapPoint * -1;
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
distToBottom: {
|
|
259
|
+
value: isBelowSnap ? Math.abs(currentYValue) : Math.abs(moveHeightValue),
|
|
260
|
+
action: () => {
|
|
261
|
+
close();
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
if (snapPointProp) {
|
|
266
|
+
dists.distToSnap = {
|
|
267
|
+
value: isBelowSnap ? Math.abs(currentYValue + snapPoint) : Math.abs(moveHeightValue - snapPoint),
|
|
268
|
+
action: () => {
|
|
269
|
+
targetHeight = snapPoint;
|
|
270
|
+
targetY = snapPoint * -1;
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
const [key, distItem] = Object.entries(dists).reduce((min, curr) => curr[1].value < min[1].value ? curr : min);
|
|
275
|
+
distItem.action();
|
|
276
|
+
if (key === "distToBottom") {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
_reactNative.Animated.parallel([_reactNative.Animated.timing(moveHeight, {
|
|
280
|
+
toValue: targetHeight,
|
|
281
|
+
useNativeDriver: false,
|
|
282
|
+
duration: ANIMATION_TO_SNAP_DURATION
|
|
283
|
+
}), _reactNative.Animated.timing(moveYPosition, {
|
|
284
|
+
toValue: targetY,
|
|
285
|
+
useNativeDriver: false,
|
|
286
|
+
duration: ANIMATION_TO_SNAP_DURATION
|
|
287
|
+
})]).start();
|
|
288
|
+
beforeYPosition.setValue(targetY);
|
|
289
|
+
height.setValue(targetHeight);
|
|
290
|
+
};
|
|
291
|
+
const panResponderHandle = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
292
|
+
//onStartShouldSetPanResponder: (evt, gestureState) => true,
|
|
293
|
+
onMoveShouldSetPanResponder: () => true,
|
|
294
|
+
onPanResponderGrant: onPanResponderGrant,
|
|
295
|
+
onPanResponderMove: onPanResponderMove,
|
|
296
|
+
onPanResponderEnd: onPanResponderEnd
|
|
297
|
+
}), []);
|
|
298
|
+
const panResponderContent = (0, _react.useMemo)(() => _reactNative.PanResponder.create({
|
|
299
|
+
//onStartShouldSetPanResponder: (evt, gestureState) => true,
|
|
300
|
+
onMoveShouldSetPanResponder: onMoveShouldSetPanResponderContent,
|
|
301
|
+
onPanResponderGrant: onPanResponderGrant,
|
|
302
|
+
onPanResponderMove: onPanResponderMove,
|
|
303
|
+
onPanResponderEnd: onPanResponderEnd
|
|
304
|
+
}), []);
|
|
305
|
+
const renderOverlay = () => {
|
|
306
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
|
|
307
|
+
style: {
|
|
308
|
+
..._styles.default.overlayTouchable,
|
|
309
|
+
...overlayStyle
|
|
310
|
+
},
|
|
311
|
+
onPress: () => {
|
|
312
|
+
if (onOverlayPress) {
|
|
313
|
+
onOverlayPress();
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
|
|
317
|
+
style: {
|
|
318
|
+
..._styles.default.overlayView,
|
|
319
|
+
opacity: overlayOpacity
|
|
320
|
+
}
|
|
321
|
+
})
|
|
322
|
+
});
|
|
323
|
+
};
|
|
324
|
+
const renderHandler = () => {
|
|
325
|
+
if (withFullScreen && withSafeArea) {
|
|
326
|
+
return null;
|
|
327
|
+
}
|
|
328
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
329
|
+
style: {
|
|
330
|
+
..._styles.default.handler,
|
|
331
|
+
backgroundColor: handlerColor
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
};
|
|
335
|
+
const renderHeader = () => {
|
|
336
|
+
return /*#__PURE__*/(0, _react.createElement)(_reactNative.Animated.View, {
|
|
337
|
+
...panResponderHandle.panHandlers,
|
|
338
|
+
key: "bottomSheet-header-key",
|
|
339
|
+
onLayout: e => {
|
|
340
|
+
if (withFullScreen) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
if (!autoHeight || snapPointProp) {
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
//@ts-ignore
|
|
347
|
+
if (opening._value !== 1) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
const absNewHeight = Math.abs(e.nativeEvent.layout.height);
|
|
351
|
+
const layoutHeight = Math.min(absNewHeight, maxHeight);
|
|
352
|
+
headerContainerHeight.current = layoutHeight;
|
|
353
|
+
calculateAutoHeight(contentContainerHeight.current, layoutHeight);
|
|
354
|
+
},
|
|
355
|
+
style: [_styles.default.handlerContainer, handler === "outside" ? {
|
|
356
|
+
position: "absolute",
|
|
357
|
+
top: -24
|
|
358
|
+
} : null]
|
|
359
|
+
}, renderHandler(), renderHeaderComponent());
|
|
360
|
+
};
|
|
361
|
+
const renderHeaderComponent = () => {
|
|
362
|
+
if (!headerComponent) {
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
return headerComponent;
|
|
366
|
+
};
|
|
367
|
+
const renderContentItems = () => {
|
|
368
|
+
if (flatListProps) {
|
|
369
|
+
return /*#__PURE__*/(0, _react.createElement)(_reactNative.FlatList, {
|
|
370
|
+
...flatListProps,
|
|
371
|
+
key: "bottomSheet-flatlist-key",
|
|
372
|
+
ref: flatListRef,
|
|
373
|
+
scrollEnabled: true,
|
|
374
|
+
onLayout: e => {
|
|
375
|
+
const height = e.nativeEvent.layout.height;
|
|
376
|
+
listHeight.current = height;
|
|
377
|
+
checkScrollability(contentHeight.current, height);
|
|
378
|
+
},
|
|
379
|
+
onContentSizeChange: (w, h) => {
|
|
380
|
+
isAtBottomRef.current = false;
|
|
381
|
+
contentHeight.current = h;
|
|
382
|
+
checkScrollability(h, listHeight.current);
|
|
383
|
+
},
|
|
384
|
+
onScroll: e => {
|
|
385
|
+
const {
|
|
386
|
+
layoutMeasurement,
|
|
387
|
+
contentOffset,
|
|
388
|
+
contentSize
|
|
389
|
+
} = e.nativeEvent;
|
|
390
|
+
scrollOffsetRef.current = contentOffset.y;
|
|
391
|
+
const paddingToBottom = 12; // tolerans
|
|
392
|
+
isAtBottomRef.current = layoutMeasurement.height + contentOffset.y >= contentSize.height - paddingToBottom;
|
|
393
|
+
},
|
|
394
|
+
onTouchStart: () => {
|
|
395
|
+
isScrolling.current = true;
|
|
396
|
+
},
|
|
397
|
+
onTouchEnd: () => {
|
|
398
|
+
isScrolling.current = false;
|
|
399
|
+
},
|
|
400
|
+
scrollEventThrottle: 16
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
if (scrollViewProps) {
|
|
404
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
405
|
+
...scrollViewProps,
|
|
406
|
+
scrollEnabled: true,
|
|
407
|
+
onLayout: e => {
|
|
408
|
+
const height = e.nativeEvent.layout.height;
|
|
409
|
+
listHeight.current = height;
|
|
410
|
+
checkScrollability(contentHeight.current, height);
|
|
411
|
+
},
|
|
412
|
+
onContentSizeChange: (w, h) => {
|
|
413
|
+
isAtBottomRef.current = false;
|
|
414
|
+
contentHeight.current = h;
|
|
415
|
+
checkScrollability(h, listHeight.current);
|
|
416
|
+
},
|
|
417
|
+
onScroll: e => {
|
|
418
|
+
const {
|
|
419
|
+
layoutMeasurement,
|
|
420
|
+
contentOffset,
|
|
421
|
+
contentSize
|
|
422
|
+
} = e.nativeEvent;
|
|
423
|
+
scrollOffsetRef.current = contentOffset.y;
|
|
424
|
+
const paddingToBottom = 12; // tolerans
|
|
425
|
+
isAtBottomRef.current = layoutMeasurement.height + contentOffset.y >= contentSize.height - paddingToBottom;
|
|
426
|
+
},
|
|
427
|
+
onTouchStart: () => {
|
|
428
|
+
isScrolling.current = true;
|
|
429
|
+
},
|
|
430
|
+
onTouchEnd: () => {
|
|
431
|
+
isScrolling.current = false;
|
|
432
|
+
},
|
|
433
|
+
scrollEventThrottle: 16,
|
|
434
|
+
children: children
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
return children;
|
|
438
|
+
};
|
|
439
|
+
const renderFooterComponent = () => {
|
|
440
|
+
if (!footerComponent) {
|
|
441
|
+
return null;
|
|
442
|
+
}
|
|
443
|
+
return footerComponent;
|
|
444
|
+
};
|
|
445
|
+
const renderContent = () => {
|
|
446
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
447
|
+
onLayout: e => {
|
|
448
|
+
if (withFullScreen) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
if (!autoHeight || snapPointProp) {
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
454
|
+
//@ts-ignore
|
|
455
|
+
if (opening._value !== 1) {
|
|
456
|
+
return;
|
|
457
|
+
}
|
|
458
|
+
const absNewHeight = Math.abs(withSafeArea ? e.nativeEvent.layout.height + insets.bottom : e.nativeEvent.layout.height);
|
|
459
|
+
const layoutHeight = Math.min(absNewHeight, maxHeight);
|
|
460
|
+
contentContainerHeight.current = layoutHeight;
|
|
461
|
+
calculateAutoHeight(layoutHeight, headerContainerHeight.current);
|
|
462
|
+
},
|
|
463
|
+
style: {
|
|
464
|
+
..._styles.default.bottomViewChildContainer,
|
|
465
|
+
...contentStyle,
|
|
466
|
+
flex: withFullScreen || !autoHeight || snapPointProp ? 1 : 0
|
|
467
|
+
},
|
|
468
|
+
...panResponderContent.panHandlers,
|
|
469
|
+
children: [renderContentItems(), renderFooterComponent()]
|
|
470
|
+
}, "bottomSheet-content-key");
|
|
471
|
+
};
|
|
472
|
+
const renderView = () => {
|
|
473
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Animated.View, {
|
|
474
|
+
style: {
|
|
475
|
+
backgroundColor: "#fff",
|
|
476
|
+
borderRadius: 8,
|
|
477
|
+
...rootStyle,
|
|
478
|
+
..._styles.default.bottomViewContainer,
|
|
479
|
+
//@ts-ignore
|
|
480
|
+
height: moveHeight._value > 0 ? moveHeight : "auto",
|
|
481
|
+
bottom: snapPoint * -1,
|
|
482
|
+
transform: [{
|
|
483
|
+
translateY: moveYPosition
|
|
484
|
+
}]
|
|
485
|
+
},
|
|
486
|
+
children: [renderHeader(), renderContent()]
|
|
487
|
+
}, "bottomSheet-root-view-key");
|
|
488
|
+
};
|
|
489
|
+
return isVisible ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
490
|
+
children: [renderOverlay(), renderView()]
|
|
491
|
+
}) : null;
|
|
492
|
+
};
|
|
493
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(Sheet);
|
|
494
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_styles","_interopRequireDefault","_reactNativeSafeAreaContext","_constants","_jsxRuntime","e","__esModule","default","t","WeakMap","r","n","o","i","f","__proto__","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ANIMATION_TO_SNAP_DURATION","ANIMATION_CLOSE_DURATION","ANIMATION_OPEN_DURATION","VELOCITY_CLOSE","Sheet","handlerColor","panGestureEnabled","snapPoint","snapPointProp","isCanFullScreenOnSnap","withSafeArea","handler","autoHeight","headerComponent","footerComponent","scrollViewProps","onOverlayPress","withFullScreen","flatListProps","contentStyle","overlayStyle","rootStyle","onClosed","onOpened","children","props","ref","insets","useSafeAreaInsets","maxHeight","windowHeight","top","isVisible","setIsVisible","useState","contentContainerHeight","useRef","headerContainerHeight","isScrollable","contentHeight","listHeight","moveHeight","Animated","Value","current","beforeYPosition","height","overlayOpacity","moveYPosition","opening","isAtBottomRef","scrollOffsetRef","isScrolling","flatListRef","useEffect","checkScrollability","contentH","listH","calculateAutoHeight","headerHeight","setValue","useImperativeHandle","close","open","openAnimate","setTimeout","closeAnimate","data","length","scrollToIndex","index","animated","toValue","parallel","timing","useNativeDriver","duration","start","finished","disableScroll","setNativeProps","scrollEnabled","enableScroll","onMoveShouldSetPanResponderContent","gestureState","dy","onPanResponderGrant","dx","y0","extra","_value","onPanResponderMove","moveY","_beforeYPosition","newYPosition","absNewY","Math","abs","max","expandedHeight","min","onPanResponderEnd","vy","moveHeightValue","currentYValue","isBelowSnap","_moveYPosition","targetHeight","targetY","dists","distToTop","value","action","distToBottom","distToSnap","key","distItem","entries","reduce","curr","panResponderHandle","useMemo","PanResponder","create","onMoveShouldSetPanResponder","panResponderContent","renderOverlay","jsx","TouchableWithoutFeedback","style","styleSheet","overlayTouchable","onPress","View","overlayView","opacity","renderHandler","backgroundColor","renderHeader","createElement","panHandlers","onLayout","absNewHeight","nativeEvent","layout","layoutHeight","handlerContainer","position","renderHeaderComponent","renderContentItems","FlatList","onContentSizeChange","w","h","onScroll","layoutMeasurement","contentOffset","contentSize","y","paddingToBottom","onTouchStart","onTouchEnd","scrollEventThrottle","ScrollView","renderFooterComponent","renderContent","jsxs","bottom","bottomViewChildContainer","flex","renderView","borderRadius","bottomViewContainer","transform","translateY","Fragment","_default","exports","forwardRef"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AASA,IAAAC,YAAA,GAAAD,OAAA;AAUA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,2BAAA,GAAAJ,OAAA;AASA,IAAAK,UAAA,GAAAL,OAAA;AAEqB,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAG,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAG,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAZ,uBAAA,YAAAA,CAAAQ,CAAA,EAAAG,CAAA,SAAAA,CAA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,GACEqH,mBAAmB,CAACe,WAAW;MAAApH,QAAA,GAElC6H,kBAAkB,CAAC,CAAC,EACpBe,qBAAqB,CAAC,CAAC;IAAA,GA5BpB,yBA6BO,CAAC;EACpB,CAAC;EAED,MAAMM,UAAU,GAAGA,CAAA,KAAM;IACrB,oBAAO,IAAA9L,WAAA,CAAA0L,IAAA,EAAC/L,YAAA,CAAAmE,QAAQ,CAAC2F,IAAI;MAEjBJ,KAAK,EAAE;QACHQ,eAAe,EAAE,MAAM;QACvBkC,YAAY,EAAE,CAAC;QACf,GAAGtJ,SAAS;QACZ,GAAG6G,eAAU,CAAC0C,mBAAmB;QACjC;QACA9H,MAAM,EAAEL,UAAU,CAACiD,MAAM,GAAG,CAAC,GAAGjD,UAAU,GAAG,MAAM;QACnD8H,MAAM,EAAEhK,SAAS,GAAG,CAAC,CAAC;QACtBsK,SAAS,EAAE,CACP;UACIC,UAAU,EAAE9H;QAChB,CAAC;MAET,CAAE;MAAAxB,QAAA,GAEDkH,YAAY,CAAC,CAAC,EACd2B,aAAa,CAAC,CAAC;IAAA,GAjBX,2BAkBM,CAAC;EACpB,CAAC;EAED,OAAOrI,SAAS,gBACZ,IAAApD,WAAA,CAAA0L,IAAA,EAAClM,MAAA,CAAA2M,QAAQ;IAAAvJ,QAAA,GACJsG,aAAa,CAAC,CAAC,EACf4C,UAAU,CAAC,CAAC;EAAA,CACP,CAAC,GAEX,IAAI;AACZ,CAAC;AAAC,IAAAM,QAAA,GAAAC,OAAA,CAAAlM,OAAA,gBAOa,IAAAmM,iBAAU,EAAC9K,KAAK,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _reactNative = require("react-native");
|
|
8
|
+
var _constants = require("./constants");
|
|
9
|
+
const styleSheet = _reactNative.StyleSheet.create({
|
|
10
|
+
bottomViewContainer: {
|
|
11
|
+
position: "absolute",
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
width: _constants.windowWidth
|
|
14
|
+
},
|
|
15
|
+
bottomViewChildContainer: {
|
|
16
|
+
overflow: "hidden"
|
|
17
|
+
},
|
|
18
|
+
overlayTouchable: {
|
|
19
|
+
position: "absolute",
|
|
20
|
+
height: _constants.windowHeight,
|
|
21
|
+
width: _constants.windowWidth,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
right: 0,
|
|
24
|
+
left: 0,
|
|
25
|
+
top: 0
|
|
26
|
+
},
|
|
27
|
+
handlerContainer: {
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
alignItems: "center",
|
|
30
|
+
width: "100%",
|
|
31
|
+
padding: 8
|
|
32
|
+
},
|
|
33
|
+
outsideHandlerContainer: {
|
|
34
|
+
justifyContent: "center",
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
position: "absolute",
|
|
37
|
+
width: "100%",
|
|
38
|
+
padding: 8,
|
|
39
|
+
top: -24
|
|
40
|
+
},
|
|
41
|
+
handler: {
|
|
42
|
+
position: "relative",
|
|
43
|
+
borderRadius: 4,
|
|
44
|
+
height: 8,
|
|
45
|
+
width: 48
|
|
46
|
+
},
|
|
47
|
+
overlayView: {
|
|
48
|
+
backgroundColor: "black",
|
|
49
|
+
flex: 1
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
var _default = exports.default = styleSheet;
|
|
53
|
+
//# sourceMappingURL=styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_constants","styleSheet","StyleSheet","create","bottomViewContainer","position","overflow","width","windowWidth","bottomViewChildContainer","overlayTouchable","height","windowHeight","bottom","right","left","top","handlerContainer","justifyContent","alignItems","padding","outsideHandlerContainer","handler","borderRadius","overlayView","backgroundColor","flex","_default","exports","default"],"sourceRoot":"../../src","sources":["styles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAIA,MAAME,UAAU,GAAGC,uBAAU,CAACC,MAAM,CAAC;EACjCC,mBAAmB,EAAE;IACjBC,QAAQ,EAAE,UAAU;IACpBC,QAAQ,EAAE,QAAQ;IAClBC,KAAK,EAAEC;EACX,CAAC;EACDC,wBAAwB,EAAE;IACtBH,QAAQ,EAAE;EACd,CAAC;EACDI,gBAAgB,EAAE;IACdL,QAAQ,EAAE,UAAU;IACpBM,MAAM,EAAEC,uBAAY;IACpBL,KAAK,EAAEC,sBAAW;IAClBK,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE,CAAC;IACRC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE;EACT,CAAC;EACDC,gBAAgB,EAAE;IACdC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBZ,KAAK,EAAE,MAAM;IACba,OAAO,EAAE;EACb,CAAC;EACDC,uBAAuB,EAAE;IACrBH,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBd,QAAQ,EAAE,UAAU;IACpBE,KAAK,EAAE,MAAM;IACba,OAAO,EAAE,CAAC;IACVJ,GAAG,EAAE,CAAC;EACV,CAAC;EACDM,OAAO,EAAE;IACLjB,QAAQ,EAAE,UAAU;IACpBkB,YAAY,EAAE,CAAC;IACfZ,MAAM,EAAE,CAAC;IACTJ,KAAK,EAAE;EACX,CAAC;EACDiB,WAAW,EAAE;IACTC,eAAe,EAAE,OAAO;IACxBC,IAAI,EAAE;EACV;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GACY5B,UAAU","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../src","sources":["types.ts"],"mappings":";;;;;AAuCC;AAGA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Dimensions","windowHeight","get","height","windowWidth","width"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;AAAA,SACIA,UAAU,QACP,cAAc;AAErB,OAAO,MAAMC,YAAY,GAAGD,UAAU,CAACE,GAAG,CAAC,QAAQ,CAAC,CAACC,MAAM;AAC3D,OAAO,MAAMC,WAAW,GAAGJ,UAAU,CAACE,GAAG,CAAC,QAAQ,CAAC,CAACG,KAAK","ignoreList":[]}
|