You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is good that there are different options for style and trackStyle so that you can customize the slider more, but this causes some problems with styling. When you pass in style={{paddingTop: 8}}, The track will move down 8 units but the slider will remain in place, causing the slider to be off the track.
The expected behavior here would be if I pass positioning style into the style prop, the whole component is repositioned instead of only piece of it.
Workaround: wrap your Slider component in a View and apply the positioning style to the wrapper, like so:
It is good that there are different options for
style
andtrackStyle
so that you can customize the slider more, but this causes some problems with styling. When you pass instyle={{paddingTop: 8}}
, The track will move down 8 units but the slider will remain in place, causing the slider to be off the track.The expected behavior here would be if I pass positioning style into the
style
prop, the whole component is repositioned instead of only piece of it.Workaround: wrap your
Slider
component in aView
and apply the positioning style to the wrapper, like so:The text was updated successfully, but these errors were encountered: