Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How can we change a default background in react native Slider?

$
0
0

I'm using react-native-community/sliderand in my case, i want to disabled user change value so i enable disabled prop,After enabling it the slider color turned gray.so how can I change it?

I'm trying to play with library code but i can't find this thing!

disabled = true

disabled

disabled = false

"that's what i want after change disabled to true"

enter image description here

Code snippet

<Slider       thumbTintColor="#ebff64"       maximumTrackTintColor="grey"       minimumTrackTintColor="#ebff64"       style={styles.seekBar}       step={1}       minimumValue={0}       maximumValue={this.state.duration}       value={this.state.currentTime}       disabled={true} />

Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>