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
- // SOLUCIÓN: Aumentamos damping a 30 (frena más fuerte)
81
- // Opcional: overshootClamping: true (prohíbe pasarse de la línea)
82
- translation.value = withSpring(0, {
83
- damping: 30, // <--- Antes era 15. Súbelo entre 25 y 30.
84
- stiffness: 90,
85
- overshootClamping: false // Ponlo en true si aun así rebota
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, { marginBottom: theme.space.md }]}>
175
+ <Text style={[theme.typography.regular.md, { padding: theme.space.md }]}>
181
176
  {description}
182
177
  </Text>
183
178
  )}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cdslibrary",
3
3
  "license": "0BSD",
4
- "version": "1.2.61",
4
+ "version": "1.2.63",
5
5
  "main": "index.js",
6
6
  "author": "Nat Viramontes",
7
7
  "description": "A library of components for the CDS project",