@@ -17,7 +17,6 @@ import Animated, {
1717 useDerivedValue ,
1818 runOnJS ,
1919} from 'react-native-reanimated' ;
20- import PropTypes from 'prop-types' ;
2120
2221// ================ Constants ================
2322const HORIZONTAL_PADDING = 15 ;
@@ -453,60 +452,4 @@ const RangeSlider = forwardRef(
453452 }
454453) ;
455454
456- // ================ PropTypes & Defaults ================
457- RangeSlider . propTypes = {
458- // Core props
459- initialMinValue : PropTypes . number ,
460- initialMaxValue : PropTypes . number ,
461- min : PropTypes . number . isRequired ,
462- max : PropTypes . number . isRequired ,
463- step : PropTypes . number ,
464-
465- // Style props
466- selectedTrackStyle : PropTypes . object ,
467- unselectedTrackStyle : PropTypes . object ,
468- thumbStyle : PropTypes . object ,
469- pressedThumbStyle : PropTypes . object ,
470- containerStyle : PropTypes . object ,
471- selectedTrackColor : PropTypes . string ,
472-
473- // Customization props
474- width : PropTypes . number ,
475- thumbSize : PropTypes . number ,
476- trackHeight : PropTypes . number ,
477- minimumDistance : PropTypes . number ,
478-
479- // Behavior props
480- enabled : PropTypes . bool ,
481- allowOverlap : PropTypes . bool ,
482-
483- // Callback props
484- onValuesChange : PropTypes . func ,
485- onValuesChangeFinish : PropTypes . func ,
486- onValuesChangeStart : PropTypes . func ,
487-
488- // Accessibility props
489- leftThumbAccessibilityLabel : PropTypes . string ,
490- rightThumbAccessibilityLabel : PropTypes . string ,
491-
492- // Visual props
493- showThumbLines : PropTypes . bool ,
494- } ;
495-
496- RangeSlider . defaultProps = {
497- step : DEFAULT_VALUES . STEP ,
498- width : DEFAULT_VALUES . WIDTH ,
499- thumbSize : DEFAULT_VALUES . THUMB_SIZE ,
500- trackHeight : DEFAULT_VALUES . TRACK_HEIGHT ,
501- minimumDistance : DEFAULT_VALUES . MINIMUM_DISTANCE ,
502- enabled : true ,
503- allowOverlap : false ,
504- onValuesChange : ( ) => { } ,
505- onValuesChangeFinish : ( ) => { } ,
506- onValuesChangeStart : ( ) => { } ,
507- leftThumbAccessibilityLabel : DEFAULT_VALUES . LEFT_THUMB_LABEL ,
508- rightThumbAccessibilityLabel : DEFAULT_VALUES . RIGHT_THUMB_LABEL ,
509- showThumbLines : DEFAULT_VALUES . SHOW_THUMB_LINES ,
510- } ;
511-
512455export default RangeSlider ;
0 commit comments