question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to adjust the size of the thumb button

See original GitHub issue
...
<Slider
    style={styles.scheduleBar}
    minimumValue={0}
    maximumValue={120}
    minimumTrackTintColor="#FFFFFF"
    maximumTrackTintColor="#000000"
    thumbImage={'../styles/dark/dot.png'}
    step={1}
 />
...

How to adjust the size of the thumb button,I checked the issue and found no useful information. Now it works on my page, but the thumb button is too big and looks very ugly

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:48
  • Comments:24

github_iconTop GitHub Comments

39reactions
OmarBasemcommented, Jan 21, 2020

I think there should be a prop for the thumb size. This is very basic.

29reactions
Rohan-Rajeshcommented, Dec 12, 2021

The answer is pretty simple just provide the thumbStyle prop with a width and height, here is an example:

<Slider
        style={styles.slider}
        minimumValue={0}
        maximumValue={1}
        minimumTrackTintColor="#00296B"
        maximumTrackTintColor="#C4C4C4"
        thumbTintColor="#00296B"
        thumbStyle={{width: 15, height: 15}}
/>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Increase size of the slider thumb in react-native on android
Is there a way to make slider's button/thumb (that green circle) bigger, to set height and width. In iOS, it looks nice, but...
Read more >
How to: Resize a Canvas by Using a Thumb - WPF .NET ...
The user begins a drag operation by pressing the left mouse button when the mouse pointer is paused on the Thumb control. The...
Read more >
Adjust settings for the side or Home button on iPhone
Go to Settings > Accessibility, then tap Side Button (on an iPhone with Face ID) or Home Button (on other iPhone models). ·...
Read more >
Carter & TruBall Release Aid Pentagon Thumb Button Knob
Find many great new & used options and get the best deals for Carter & TruBall Release Aid Pentagon Thumb Button Knob -...
Read more >
ULTRAVIEW™ Brand New Thumb Button Release
A wide range of travel and force adjustment, springed d-loop retainment, wrist strap loop, ergonomic contoured knob, rubber bumper silencing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found