Skip to content

Commit

Permalink
fix: Problem with the slider component printing warnings to the console.
Browse files Browse the repository at this point in the history
  • Loading branch information
DogusErdem committed Jan 2, 2024
1 parent daf9fbf commit 0717825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Slider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const Slider: FCCWD<SliderProps> = (
onLayout={() => containerRef.current?.measure((x, y, width, height, pageX, pageY) => { setMeasure({ x, y, pageX, pageY, width, height }); })}
style={[{ backgroundColor: theme?.primary15 }, Style.barStyle, barStyle]}
>
<Animated.View style={[{ position: 'absolute', borderRadius: 14, backgroundColor: theme?.primary, width: progress.value, height: 6 }, progressStyle, percentageStyle]} />
<Animated.View style={[{ position: 'absolute', borderRadius: 14, backgroundColor: theme?.primary, width: progress, height: 6 }, progressStyle, percentageStyle]} />
<PanGestureHandler onGestureEvent={handler}>
<Animated.View hitSlop={{ top: 25, bottom: 25, left: 25, right: 25 }} style={[{ backgroundColor: theme?.white }, Style.button, buttonStyle, progressBarStyle]}>
{showPercentage && (
Expand Down

0 comments on commit 0717825

Please sign in to comment.