Skip to content

Commit

Permalink
Remove the redundant example
Browse files Browse the repository at this point in the history
  • Loading branch information
BartoszKlonowski committed Jan 17, 2025
1 parent 06809ac commit e80a0b3
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions example/src/Examples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,27 +381,6 @@ const SliderExampleWithCustomComponentAndFilledSteps = (props: SliderProps) => {
);
};

const SliderExampleWithCustomMarkerWithDefaultProps = (props: SliderProps) => {
const [value, setValue] = useState(props.value ?? CONSTANTS.MIN_VALUE);

return (
<View style={styles.container}>
<Text style={styles.text}>{value && +value.toFixed(3)}</Text>
<Slider
style={[styles.slider, props.style]}
thumbImage={require('./resources/empty.png')}
tapToSeek
{...props}
value={value}
onValueChange={setValue}
StepMarker={MyStepMarker}
minimumTrackTintColor={'#00629A'}
maximumTrackTintColor={'#979EA4'}
/>
</View>
);
};

export default SliderExample;

const styles = StyleSheet.create({
Expand Down Expand Up @@ -733,12 +712,6 @@ export const examples: Props[] = [
return <SliderExampleWithCustomMarker />;
},
},
{
title: 'Custom step marker but default step and min/max values',
render() {
return <SliderExampleWithCustomMarkerWithDefaultProps />;
},
},
{
title: 'Custom component with steps filled when passed',
render() {
Expand Down

0 comments on commit e80a0b3

Please sign in to comment.