@vvedantb/native-ui 0.23.0 → 0.24.1

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.
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { Pressable, useWindowDimensions, View } from "react-native";
2
+ import { useWindowDimensions, View } from "react-native";
3
3
  import { IconSearch, IconX } from "@tabler/icons-react-native";
4
4
  import { Input as PrimitiveInput } from "./primitives/input";
5
5
  import { cn } from "./cn";
@@ -13,6 +13,7 @@ import {
13
13
  typeStyle,
14
14
  type SearchInputSize,
15
15
  } from "./controlStyles";
16
+ import { AnimatedPressable, usePressScale } from "./pressScale";
16
17
  import { palette } from "./palette";
17
18
  import { tokens } from "./tokens";
18
19
  import { useLargerText } from "./theme";
@@ -138,18 +139,13 @@ const SearchInput = React.forwardRef<
138
139
  className="absolute bottom-0 top-0 justify-center"
139
140
  style={{ right: metrics.clearRight }}
140
141
  >
141
- <Pressable
142
- testID="search-input-clear"
143
- accessibilityRole="button"
144
- accessibilityLabel={clearLabel}
145
- hitSlop={touchSlop(metrics.clear)}
142
+ <ClearButton
143
+ label={clearLabel}
144
+ size={metrics.clear}
145
+ iconSize={metrics.clearIcon}
146
+ color={muted}
146
147
  onPress={() => change("")}
147
- className="items-center justify-center rounded-md active:opacity-70"
148
- style={{ width: metrics.clear, height: metrics.clear }}
149
- >
150
- {/* `strokeWidth`, not the web `stroke`: here `stroke` is the colour. */}
151
- <IconX size={metrics.clearIcon} color={muted} strokeWidth={1.75} />
152
- </Pressable>
148
+ />
153
149
  </View>
154
150
  ) : null}
155
151
  </View>
@@ -159,5 +155,37 @@ const SearchInput = React.forwardRef<
159
155
 
160
156
  SearchInput.displayName = "SearchInput";
161
157
 
158
+ function ClearButton({
159
+ label,
160
+ size,
161
+ iconSize,
162
+ color,
163
+ onPress,
164
+ }: {
165
+ label: string;
166
+ size: number;
167
+ iconSize: number;
168
+ color: string;
169
+ onPress: () => void;
170
+ }) {
171
+ const press = usePressScale();
172
+ return (
173
+ <AnimatedPressable
174
+ testID="search-input-clear"
175
+ accessibilityRole="button"
176
+ accessibilityLabel={label}
177
+ hitSlop={touchSlop(size)}
178
+ onPress={onPress}
179
+ onPressIn={press.onPressIn}
180
+ onPressOut={press.onPressOut}
181
+ className="items-center justify-center rounded-md"
182
+ style={[{ width: size, height: size }, press.style]}
183
+ >
184
+ {/* `strokeWidth`, not the web `stroke`: here `stroke` is the colour. */}
185
+ <IconX size={iconSize} color={color} strokeWidth={1.75} />
186
+ </AnimatedPressable>
187
+ );
188
+ }
189
+
162
190
  export { SearchInput };
163
191
  export type { SearchInputProps };
package/src/Sheet.tsx CHANGED
@@ -21,7 +21,7 @@ const SHEET_RADIUS = tokens.radius.card;
21
21
  export type SheetProps = OverlayRootProps;
22
22
 
23
23
  /**
24
- * Bottom sheet in an RN `Modal`, with no `@gorhom/bottom-sheet`. Same open
24
+ * Bottom sheet in an RN `Modal`, with no bottom-sheet library. Same open
25
25
  * state API as `Dialog`.
26
26
  */
27
27
  export function Sheet(props: SheetProps) {
@@ -1,6 +1,7 @@
1
- import { Pressable, Text } from "react-native";
1
+ import { Text } from "react-native";
2
2
  import { cn } from "../cn";
3
3
  import { buttonColors, MIN_TOUCH_TARGET, sizeStyle, touchSlop, typeStyle, type ButtonVariant } from "../controlStyles";
4
+ import { AnimatedPressable, usePressScale } from "../pressScale";
4
5
  import { useLargerText } from "../theme";
5
6
  import { useScheme } from "../useScheme";
6
7
  import { chatTextSize } from "./chat-text";
@@ -23,8 +24,9 @@ export function CardButton({ label, variant, onPress, disabled, accessibilityLab
23
24
  const largerText = useLargerText();
24
25
  const size = chatTextSize("small", largerText);
25
26
  const colors = buttonColors(variant, scheme)!;
27
+ const press = usePressScale({ restOpacity: disabled ? 0.5 : 1, disabled: !!disabled });
26
28
  return (
27
- <Pressable
29
+ <AnimatedPressable
28
30
  testID={testID}
29
31
  accessibilityRole="button"
30
32
  accessibilityLabel={accessibilityLabel ?? label}
@@ -32,18 +34,22 @@ export function CardButton({ label, variant, onPress, disabled, accessibilityLab
32
34
  disabled={disabled}
33
35
  onPress={onPress}
34
36
  hitSlop={touchSlop(MIN_TOUCH_TARGET)}
35
- className={cn("items-center justify-center rounded-full border px-4 active:opacity-70")}
36
- style={{
37
- minHeight: MIN_TOUCH_TARGET,
38
- minWidth: MIN_TOUCH_TARGET,
39
- backgroundColor: colors.backgroundColor,
40
- borderColor: colors.borderColor,
41
- opacity: disabled ? 0.5 : 1,
42
- }}
37
+ onPressIn={press.onPressIn}
38
+ onPressOut={press.onPressOut}
39
+ className="items-center justify-center rounded-full border px-4"
40
+ style={[
41
+ {
42
+ minHeight: MIN_TOUCH_TARGET,
43
+ minWidth: MIN_TOUCH_TARGET,
44
+ backgroundColor: colors.backgroundColor,
45
+ borderColor: colors.borderColor,
46
+ },
47
+ press.style,
48
+ ]}
43
49
  >
44
50
  <Text className={cn(size, "font-instrument-sans-semibold")} style={[sizeStyle(size), typeStyle("semibold"), { color: colors.color }]}>
45
51
  {label}
46
52
  </Text>
47
- </Pressable>
53
+ </AnimatedPressable>
48
54
  );
49
55
  }
@@ -1,7 +1,8 @@
1
- import { Pressable, Text, View } from "react-native";
1
+ import { Text, View } from "react-native";
2
2
  import { IconFile } from "@tabler/icons-react-native";
3
3
  import { cn } from "../cn";
4
4
  import { MIN_TOUCH_TARGET, sizeStyle, textStyle, touchSlop } from "../controlStyles";
5
+ import { AnimatedPressable, usePressScale } from "../pressScale";
5
6
  import { palette } from "../palette";
6
7
  import { useLargerText } from "../theme";
7
8
  import { tokens } from "../tokens";
@@ -51,16 +52,24 @@ export type FileChipProps = {
51
52
  */
52
53
  export function FileChip({ name, path, onOpenFile }: FileChipProps) {
53
54
  if (!path || !onOpenFile) return <FileChipLabel name={name} />;
55
+ return <FileChipButton name={name} path={path} onOpenFile={onOpenFile} />;
56
+ }
57
+
58
+ function FileChipButton({ name, path, onOpenFile }: { name: string; path: string; onOpenFile: (path: string) => void }) {
59
+ const press = usePressScale();
54
60
  return (
55
- <Pressable
61
+ <AnimatedPressable
56
62
  accessibilityRole="button"
57
63
  accessibilityLabel={name}
58
64
  accessibilityHint={path}
59
65
  hitSlop={touchSlop(MIN_TOUCH_TARGET, CHIP_HEIGHT)}
60
66
  onPress={() => onOpenFile(path)}
61
- className="min-w-0 max-w-full active:opacity-70"
67
+ onPressIn={press.onPressIn}
68
+ onPressOut={press.onPressOut}
69
+ style={press.style}
70
+ className="min-w-0 max-w-full"
62
71
  >
63
72
  <FileChipLabel name={name} />
64
- </Pressable>
73
+ </AnimatedPressable>
65
74
  );
66
75
  }
@@ -39,7 +39,7 @@ export type MessageActionSheetProps = {
39
39
 
40
40
  /**
41
41
  * The sheet that opens on a long press of a chat message: a bottom sheet in
42
- * an RN `Modal` (no `@gorhom/bottom-sheet`) with one pressable row per action
42
+ * an RN `Modal` (no bottom-sheet library) with one pressable row per action
43
43
  * and a Cancel row. It closes on the backdrop, Cancel, Android back and after
44
44
  * an action. A `selectionHaptic()` fires when it opens (`expo-haptics` is an
45
45
  * optional peer). Row testIDs are `{testID}-action-{key}`.
@@ -1,2 +1,3 @@
1
- // `@vvedantb/native-ui/bottom-sheet`. Imports `@gorhom/bottom-sheet`.
1
+ // `@vvedantb/native-ui/bottom-sheet`. Imports `@swmansion/react-native-bottom-sheet`
2
+ // (an optional peer).
2
3
  export { BottomSheetContainer } from "../BottomSheetContainer";
@@ -0,0 +1,72 @@
1
+ import { cssInterop } from "nativewind";
2
+ import { useCallback, useEffect } from "react";
3
+ import { Pressable } from "react-native";
4
+ import Animated, { useAnimatedStyle, useSharedValue, withTiming } from "react-native-reanimated";
5
+ import { EASE_OUT } from "./motion";
6
+ import { useReduceMotion } from "./useReduceMotion";
7
+
8
+ /**
9
+ * A `Pressable` whose `style` can take the style from `usePressScale`.
10
+ * NativeWind maps `className` only for components it knows, so it is told
11
+ * about this one, or the classes would be dropped.
12
+ */
13
+ export const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
14
+ cssInterop(AnimatedPressable, { className: "style" });
15
+
16
+ export type PressScaleOptions = {
17
+ /** Scale while pressed. Default 0.97. */
18
+ scale?: number;
19
+ /** Opacity while pressed, a light dim. Default 0.7, the dim these controls had before the scale. */
20
+ dim?: number;
21
+ /** Dim used instead under Reduce Motion. Default `dim`. */
22
+ reducedDim?: number;
23
+ /** Opacity at rest, such as 0.5 when disabled. The press dims from here. Default 1. */
24
+ restOpacity?: number;
25
+ /** Press-in duration in ms. Default 120. */
26
+ pressInMs?: number;
27
+ /** Release duration in ms. Default 160. */
28
+ pressOutMs?: number;
29
+ /** A disabled control lets go at once, so it cannot stay pressed. */
30
+ disabled?: boolean;
31
+ };
32
+
33
+ /**
34
+ * Press feedback for a small control: a scale and a light dim that ease in on
35
+ * press-in and ease back on release. Pass `onPressIn` and `onPressOut` to the
36
+ * `Pressable` and `style` to the animated view that should scale (an
37
+ * `AnimatedPressable`, or an `Animated.View` inside the `Pressable`). One
38
+ * shared value on the UI thread drives transform and opacity only. A new press
39
+ * or release starts from the current value, so a fast tap never sticks. With
40
+ * Reduce Motion nothing animates and nothing scales: the dim switches on and
41
+ * off at once.
42
+ */
43
+ export function usePressScale({
44
+ scale = 0.97,
45
+ dim = 0.7,
46
+ reducedDim = dim,
47
+ restOpacity = 1,
48
+ pressInMs = 120,
49
+ pressOutMs = 160,
50
+ disabled = false,
51
+ }: PressScaleOptions = {}) {
52
+ const reduceMotion = useReduceMotion();
53
+ const progress = useSharedValue(0);
54
+ const target = reduceMotion ? reducedDim : dim;
55
+ const onPressIn = useCallback(() => {
56
+ progress.set(reduceMotion ? 1 : withTiming(1, { duration: pressInMs, easing: EASE_OUT }));
57
+ }, [progress, reduceMotion, pressInMs]);
58
+ const onPressOut = useCallback(() => {
59
+ progress.set(reduceMotion ? 0 : withTiming(0, { duration: pressOutMs, easing: EASE_OUT }));
60
+ }, [progress, reduceMotion, pressOutMs]);
61
+ useEffect(() => {
62
+ if (disabled) progress.set(0);
63
+ }, [disabled, progress]);
64
+ const style = useAnimatedStyle(() => {
65
+ const p = progress.get();
66
+ return {
67
+ opacity: restOpacity * (1 - p * (1 - target)),
68
+ transform: [{ scale: reduceMotion ? 1 : 1 - p * (1 - scale) }],
69
+ };
70
+ });
71
+ return { style, onPressIn, onPressOut };
72
+ }
@@ -5,6 +5,7 @@ import { IconCheck, IconChevronDown, IconChevronUp } from "@tabler/icons-react-n
5
5
  import * as React from "react";
6
6
  import { Platform, ScrollView, StyleSheet, Text, View } from "react-native";
7
7
  import { FadeIn, FadeOut } from "react-native-reanimated";
8
+ import { EASE_OUT } from "../motion";
8
9
  import { NativeOnlyAnimatedView } from "./native-only-animated-view";
9
10
  import { SelectHost } from "./select-host";
10
11
  import { TextClassContext } from "./text";
@@ -80,6 +81,10 @@ type SelectContentProps = React.ComponentPropsWithoutRef<
80
81
  portalHost?: string;
81
82
  };
82
83
 
84
+ /** The popover fades in and out on the strong ease-out. */
85
+ const SELECT_ENTER = FadeIn.duration(150).easing(EASE_OUT);
86
+ const SELECT_EXIT = FadeOut.duration(100).easing(EASE_OUT);
87
+
83
88
  const SelectContent = React.forwardRef<
84
89
  React.ElementRef<typeof SelectPrimitive.Content>,
85
90
  SelectContentProps
@@ -89,8 +94,8 @@ const SelectContent = React.forwardRef<
89
94
  <SelectPrimitive.Overlay style={overlayFill}>
90
95
  <TextClassContext.Provider value="text-popover-foreground">
91
96
  <NativeOnlyAnimatedView
92
- entering={FadeIn}
93
- exiting={FadeOut}
97
+ entering={SELECT_ENTER}
98
+ exiting={SELECT_EXIT}
94
99
  className="z-50"
95
100
  // Content is absolutely positioned, so a bare wrapper has zero height
96
101
  // and UI tests drop its children as invisible. Fill the overlay and
@@ -1,303 +0,0 @@
1
- import { c as _c } from "react/compiler-runtime";
2
- import { ModalBottomSheet } from "@swmansion/react-native-bottom-sheet";
3
- import { IconX } from "@tabler/icons-react-native";
4
- import React, { useCallback, useEffect, useMemo, useState } from "react";
5
- import { StyleSheet, Text, TouchableOpacity, View } from "react-native";
6
- import { Colors } from "./colors";
7
- import { textStyle, typeStyle } from "./controlStyles";
8
- import { floatingSolidFill } from "./floating";
9
- import { withAlpha } from "./palette";
10
- import { useLargerText } from "./theme";
11
- import { tokens } from "./tokens";
12
- import { useScheme } from "./useScheme";
13
- const SHEET_RADIUS = 20;
14
-
15
- // A single open detent at 40%, so the default matches the gorhom container's one
16
- // snap point. A caller can pass several detents to try the library's multi-detent
17
- // sizing. The closed detent (0) is added by the component.
18
- const DEFAULT_DETENTS = ["40%"];
19
-
20
- // A dimming scrim like the gorhom backdrop's `opacity={0.5}`. The library scales
21
- // this alpha to 0 at the closed detent and to full at an open one.
22
- const SCRIM_COLOR = "rgba(0, 0, 0, 0.5)";
23
-
24
- /**
25
- * EXPERIMENTAL. A trial of Software Mansion's native `@swmansion/react-native-bottom-sheet`,
26
- * next to the gorhom-based {@link BottomSheetContainer}. It mirrors that container's role
27
- * and props: a controlled sheet over the screen, driven by `visible`/`onClose`, with a
28
- * title and a close button in the same chrome.
29
- *
30
- * It is built on `ModalBottomSheet` in `windowOverlay` mode, so it needs no root
31
- * `BottomSheetProvider` and nothing else in the app changes. The library is New
32
- * Architecture only and ships native code, so it needs a native build (no Expo Go).
33
- *
34
- * Extra over the gorhom container: `detents`, the library's multi-detent sizing. Pass
35
- * the open detents, shortest first; the default is a single 40% detent.
36
- */
37
- export function NativeBottomSheetContainer(t0) {
38
- const $ = _c(54);
39
- const {
40
- visible,
41
- onClose,
42
- title,
43
- children,
44
- closeTestID,
45
- detents: t1
46
- } = t0;
47
- const detents = t1 === undefined ? DEFAULT_DETENTS : t1;
48
- const largerText = useLargerText();
49
- const scheme = useScheme();
50
- const isDark = scheme === "dark";
51
- let t2;
52
- if ($[0] !== detents) {
53
- t2 = [0, ...detents];
54
- $[0] = detents;
55
- $[1] = t2;
56
- } else {
57
- t2 = $[1];
58
- }
59
- const detentList = t2;
60
- const [index, setIndex] = useState(0);
61
- let t3;
62
- let t4;
63
- if ($[2] !== visible) {
64
- t3 = () => {
65
- setIndex(current => visible ? current === 0 ? 1 : current : 0);
66
- };
67
- t4 = [visible];
68
- $[2] = visible;
69
- $[3] = t3;
70
- $[4] = t4;
71
- } else {
72
- t3 = $[3];
73
- t4 = $[4];
74
- }
75
- useEffect(t3, t4);
76
- let t5;
77
- if ($[5] !== onClose) {
78
- t5 = next => {
79
- setIndex(next);
80
- if (next === 0) {
81
- onClose();
82
- }
83
- };
84
- $[5] = onClose;
85
- $[6] = t5;
86
- } else {
87
- t5 = $[6];
88
- }
89
- const handleIndexChange = t5;
90
- let t6;
91
- if ($[7] !== onClose) {
92
- t6 = () => {
93
- setIndex(0);
94
- onClose();
95
- };
96
- $[7] = onClose;
97
- $[8] = t6;
98
- } else {
99
- t6 = $[8];
100
- }
101
- const handleCloseRequest = t6;
102
- const t7 = floatingSolidFill[scheme];
103
- let t8;
104
- if ($[9] !== t7) {
105
- t8 = <View style={[StyleSheet.absoluteFill, {
106
- backgroundColor: t7
107
- }]} />;
108
- $[9] = t7;
109
- $[10] = t8;
110
- } else {
111
- t8 = $[10];
112
- }
113
- const surface = t8;
114
- let t9;
115
- if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
116
- t9 = {
117
- borderTopLeftRadius: SHEET_RADIUS,
118
- borderTopRightRadius: SHEET_RADIUS
119
- };
120
- $[11] = t9;
121
- } else {
122
- t9 = $[11];
123
- }
124
- let t10;
125
- if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
126
- t10 = {
127
- flex: 1,
128
- paddingTop: 12
129
- };
130
- $[12] = t10;
131
- } else {
132
- t10 = $[12];
133
- }
134
- const t11 = tokens.color.muted[scheme];
135
- let t12;
136
- if ($[13] !== t11) {
137
- t12 = withAlpha(t11, 0.4);
138
- $[13] = t11;
139
- $[14] = t12;
140
- } else {
141
- t12 = $[14];
142
- }
143
- let t13;
144
- if ($[15] !== t12) {
145
- t13 = <View accessibilityElementsHidden={true} importantForAccessibility="no-hide-descendants" style={{
146
- alignSelf: "center",
147
- height: 6,
148
- width: 40,
149
- borderRadius: 999,
150
- backgroundColor: t12
151
- }} />;
152
- $[15] = t12;
153
- $[16] = t13;
154
- } else {
155
- t13 = $[16];
156
- }
157
- let t14;
158
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
159
- t14 = {
160
- flexDirection: "row",
161
- alignItems: "center",
162
- justifyContent: "space-between",
163
- gap: 12,
164
- paddingHorizontal: 20,
165
- marginTop: 16,
166
- marginBottom: 16
167
- };
168
- $[17] = t14;
169
- } else {
170
- t14 = $[17];
171
- }
172
- const t15 = largerText ? 24 : 20;
173
- let t16;
174
- if ($[18] !== t15) {
175
- t16 = {
176
- flex: 1,
177
- fontSize: t15
178
- };
179
- $[18] = t15;
180
- $[19] = t16;
181
- } else {
182
- t16 = $[19];
183
- }
184
- let t17;
185
- if ($[20] !== scheme) {
186
- t17 = textStyle("foreground", scheme);
187
- $[20] = scheme;
188
- $[21] = t17;
189
- } else {
190
- t17 = $[21];
191
- }
192
- let t18;
193
- if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
194
- t18 = typeStyle("semibold");
195
- $[22] = t18;
196
- } else {
197
- t18 = $[22];
198
- }
199
- let t19;
200
- if ($[23] !== t16 || $[24] !== t17) {
201
- t19 = [t16, t17, t18];
202
- $[23] = t16;
203
- $[24] = t17;
204
- $[25] = t19;
205
- } else {
206
- t19 = $[25];
207
- }
208
- let t20;
209
- if ($[26] !== t19 || $[27] !== title) {
210
- t20 = <Text accessibilityRole="header" style={t19}>{title}</Text>;
211
- $[26] = t19;
212
- $[27] = title;
213
- $[28] = t20;
214
- } else {
215
- t20 = $[28];
216
- }
217
- let t21;
218
- if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
219
- t21 = {
220
- marginRight: -8,
221
- height: 48,
222
- width: 48,
223
- alignItems: "center",
224
- justifyContent: "center"
225
- };
226
- $[29] = t21;
227
- } else {
228
- t21 = $[29];
229
- }
230
- const t22 = largerText ? 32 : 28;
231
- const t23 = isDark ? Colors.white : Colors.black;
232
- let t24;
233
- if ($[30] !== t22 || $[31] !== t23) {
234
- t24 = <IconX size={t22} color={t23} />;
235
- $[30] = t22;
236
- $[31] = t23;
237
- $[32] = t24;
238
- } else {
239
- t24 = $[32];
240
- }
241
- let t25;
242
- if ($[33] !== closeTestID || $[34] !== handleCloseRequest || $[35] !== t24) {
243
- t25 = <TouchableOpacity testID={closeTestID} accessibilityRole="button" accessibilityLabel="Close" onPress={handleCloseRequest} style={t21} hitSlop={8} activeOpacity={0.7}>{t24}</TouchableOpacity>;
244
- $[33] = closeTestID;
245
- $[34] = handleCloseRequest;
246
- $[35] = t24;
247
- $[36] = t25;
248
- } else {
249
- t25 = $[36];
250
- }
251
- let t26;
252
- if ($[37] !== t20 || $[38] !== t25) {
253
- t26 = <View style={t14}>{t20}{t25}</View>;
254
- $[37] = t20;
255
- $[38] = t25;
256
- $[39] = t26;
257
- } else {
258
- t26 = $[39];
259
- }
260
- let t27;
261
- if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
262
- t27 = {
263
- flex: 1,
264
- paddingHorizontal: 20,
265
- paddingBottom: 48
266
- };
267
- $[40] = t27;
268
- } else {
269
- t27 = $[40];
270
- }
271
- let t28;
272
- if ($[41] !== children) {
273
- t28 = <View style={t27}>{children}</View>;
274
- $[41] = children;
275
- $[42] = t28;
276
- } else {
277
- t28 = $[42];
278
- }
279
- let t29;
280
- if ($[43] !== t13 || $[44] !== t26 || $[45] !== t28) {
281
- t29 = <View style={t10}>{t13}{t26}{t28}</View>;
282
- $[43] = t13;
283
- $[44] = t26;
284
- $[45] = t28;
285
- $[46] = t29;
286
- } else {
287
- t29 = $[46];
288
- }
289
- let t30;
290
- if ($[47] !== detentList || $[48] !== handleCloseRequest || $[49] !== handleIndexChange || $[50] !== index || $[51] !== surface || $[52] !== t29) {
291
- t30 = <ModalBottomSheet index={index} detents={detentList} lazy={true} windowOverlay={true} scrimColor={SCRIM_COLOR} scrimAccessibilityLabel="Close" surface={surface} surfaceStyle={t9} onIndexChange={handleIndexChange} onCloseRequest={handleCloseRequest}>{t29}</ModalBottomSheet>;
292
- $[47] = detentList;
293
- $[48] = handleCloseRequest;
294
- $[49] = handleIndexChange;
295
- $[50] = index;
296
- $[51] = surface;
297
- $[52] = t29;
298
- $[53] = t30;
299
- } else {
300
- t30 = $[53];
301
- }
302
- return t30;
303
- }
@@ -1,4 +0,0 @@
1
- // `@vvedantb/native-ui/native-bottom-sheet`. Experimental: imports Software Mansion's
2
- // native `@swmansion/react-native-bottom-sheet` (an optional peer). Kept separate from
3
- // the gorhom `./bottom-sheet` entry so neither affects the other.
4
- export { NativeBottomSheetContainer } from "../NativeBottomSheetContainer";