miblanchard / react-native-slider

A pure JavaScript <Slider> component for react-native and react-native-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thumb tint color

witekmikolajczak opened this issue · comments

Hello!

Has anyone else had a problem with the transparency of the dot on the slider in android systems? On IOS it's perfect ;) . Is there any workaround for this problem?

android:
image

ios:
image

code:

           <Slider
              thumbTintColor="#FFFFFF"
              minimumValue={0}
              maximumValue={duration}
              step={duration / 1000}
              value={time}
              minimumTrackTintColor="lightblue"
              maximumTrackTintColor="rgba(255, 255, 255, 1)"
              onSlidingStart={() => {
                soundRef.current.pause();
              }}
              onSlidingComplete={() => {
                if (isPlaying) {
                  soundRef.current.play();
                }
              }}
              onValueChange={(value) => {
                soundRef.current.setCurrentTime(value[0]);
              }}
            />