dhre-ui-kit 0.0.249 → 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.mjs CHANGED
@@ -15,7 +15,6 @@ import { Dropdown } from 'react-native-element-dropdown';
15
15
  import DocumentPicker from 'react-native-document-picker';
16
16
  import RNFS from 'react-native-fs';
17
17
  import OTPVerify, { removeListener, startOtpListener } from 'react-native-otp-verify';
18
- import { verticalScale as verticalScale$1, moderateScale as moderateScale$1 } from 'src/utils/stylehelper';
19
18
  import Clipboard from '@react-native-clipboard/clipboard';
20
19
 
21
20
  var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
@@ -4343,8 +4342,8 @@ const styles$3 = StyleSheet.create({
4343
4342
  alignItems: "center"
4344
4343
  },
4345
4344
  sliderContainer: {
4346
- height: verticalScale$1(48),
4347
- borderRadius: moderateScale$1(25),
4345
+ height: verticalScale(48),
4346
+ borderRadius: moderateScale(25),
4348
4347
  overflow: "hidden",
4349
4348
  justifyContent: "center"
4350
4349
  },
@@ -4355,10 +4354,10 @@ const styles$3 = StyleSheet.create({
4355
4354
  justifyContent: "center"
4356
4355
  },
4357
4356
  button: {
4358
- height: verticalScale$1(40),
4357
+ height: verticalScale(40),
4359
4358
  justifyContent: "center",
4360
4359
  alignItems: "center",
4361
- borderRadius: moderateScale$1(20),
4360
+ borderRadius: moderateScale(20),
4362
4361
  margin: 4
4363
4362
  },
4364
4363
  buttonTextContainer: {
@@ -4413,10 +4412,7 @@ const CustomSlideButton = React.forwardRef(
4413
4412
  }
4414
4413
  };
4415
4414
  const resetAll = () => {
4416
- Animated.timing(translateX, {
4417
- toValue: 0,
4418
- useNativeDriver: false
4419
- }).start();
4415
+ onReset?.();
4420
4416
  Animated.timing(sliderBackgroundColorRef, {
4421
4417
  toValue: 0,
4422
4418
  duration: 0,
@@ -4426,12 +4422,15 @@ const CustomSlideButton = React.forwardRef(
4426
4422
  }).start();
4427
4423
  Animated.timing(color, {
4428
4424
  toValue: 0,
4429
- delay: 300,
4425
+ delay: 0,
4430
4426
  // no transition time, immediate change
4431
4427
  useNativeDriver: false
4432
4428
  // because we're animating the color, not layout
4433
4429
  }).start();
4434
- onReset?.();
4430
+ Animated.timing(translateX, {
4431
+ toValue: 0,
4432
+ useNativeDriver: false
4433
+ }).start();
4435
4434
  };
4436
4435
  const panResponder = PanResponder.create({
4437
4436
  onMoveShouldSetPanResponder: (e, gestureState) => {