dhre-ui-kit 0.0.250 → 0.0.251
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/index.js +6 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -4412,10 +4412,7 @@ const CustomSlideButton = React.forwardRef(
|
|
|
4412
4412
|
}
|
|
4413
4413
|
};
|
|
4414
4414
|
const resetAll = () => {
|
|
4415
|
-
|
|
4416
|
-
toValue: 0,
|
|
4417
|
-
useNativeDriver: false
|
|
4418
|
-
}).start();
|
|
4415
|
+
onReset?.();
|
|
4419
4416
|
Animated.timing(sliderBackgroundColorRef, {
|
|
4420
4417
|
toValue: 0,
|
|
4421
4418
|
duration: 0,
|
|
@@ -4425,12 +4422,15 @@ const CustomSlideButton = React.forwardRef(
|
|
|
4425
4422
|
}).start();
|
|
4426
4423
|
Animated.timing(color, {
|
|
4427
4424
|
toValue: 0,
|
|
4428
|
-
delay:
|
|
4425
|
+
delay: 0,
|
|
4429
4426
|
// no transition time, immediate change
|
|
4430
4427
|
useNativeDriver: false
|
|
4431
4428
|
// because we're animating the color, not layout
|
|
4432
4429
|
}).start();
|
|
4433
|
-
|
|
4430
|
+
Animated.timing(translateX, {
|
|
4431
|
+
toValue: 0,
|
|
4432
|
+
useNativeDriver: false
|
|
4433
|
+
}).start();
|
|
4434
4434
|
};
|
|
4435
4435
|
const panResponder = PanResponder.create({
|
|
4436
4436
|
onMoveShouldSetPanResponder: (e, gestureState) => {
|