react-native-slider
react-native-slider copied to clipboard
cannot increse the height of slider like borderWith
Describe the Feature
cannot increase the width of slider
Add this feature
Hello @saqibrazaq1, let me understand what you are asking for:
- The width of the slider, means the length of the track?
If so, you can use the
widthof styling, as:<Slider style={{ width: 250 }} /> - The width of the thumb? To customize the default (system, native) thumb of the slider is currently not supported, but you can use your own component that would be rendered instead of default thumb, or you can also use the image that would replace the thumb.
Let me know please.
i mean height like like border 1px or border 2px and borderWidth 3 the line of slider is thin i want a thick line slider
i mean height like like border 1px or border 2px and borderWidth 3 the line of slider is thin i want a thick line slider
did you find a solution?
+1 to this issue
+1
Can't a feature to pass styles to parts of sliders be added?
+1
+1 for this issue
+1
+1
I have been working extensively on achieving custom height (thickness) for the slider, as requested. While I managed to make some progress, such as drawing custom drawables, I encountered persistent challenges. These include synchronisation issues with colors and incompatibility between the custom drawable and the default thumb, which often results in the components visually merging into a single element.
Most of the suggested solutions recommend using the Material Slider instead of the current implementation based on Material SeekBar. While I even attempted to create an alternative implementation, I faced significant obstacles due to mismatches in behavior and design elements, which ultimately led me to abandon the effort.
Given these challenges, I believe for now this is not something we can implement, but maybe at some point we will consider migrating to material implementation.
Dears, let me close this as a duplicate in favor of #85.
