cdslibrary 1.2.61 → 1.2.63
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.
|
@@ -77,18 +77,13 @@ const bottomSheetRender = ({
|
|
|
77
77
|
// --- 4. Efectos de Entrada/Salida ---
|
|
78
78
|
useEffect(() => {
|
|
79
79
|
if (isVisible) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
opacity.value = withTiming(1, { duration: 300 });
|
|
88
|
-
} else {
|
|
89
|
-
translation.value = withTiming(startPos, { duration: 300 });
|
|
90
|
-
opacity.value = withTiming(0, { duration: 300 });
|
|
91
|
-
}
|
|
80
|
+
// Usamos una curva Bezier suave (out-expo) que se frena al final
|
|
81
|
+
translation.value = withTiming(0, {
|
|
82
|
+
duration: 300,
|
|
83
|
+
easing: Easing.out(Easing.exp),
|
|
84
|
+
});
|
|
85
|
+
opacity.value = withTiming(1, { duration: 300 });
|
|
86
|
+
}
|
|
92
87
|
}, [isVisible]);
|
|
93
88
|
|
|
94
89
|
// --- 5. Estilos Animados ---
|
|
@@ -177,7 +172,7 @@ const bottomSheetRender = ({
|
|
|
177
172
|
scrollEventThrottle={16}
|
|
178
173
|
>
|
|
179
174
|
{!!description && (
|
|
180
|
-
<Text style={[theme.typography.regular.md, {
|
|
175
|
+
<Text style={[theme.typography.regular.md, { padding: theme.space.md }]}>
|
|
181
176
|
{description}
|
|
182
177
|
</Text>
|
|
183
178
|
)}
|