alantoa / react-native-awesome-slider

🚀 An anwesome <Slider/> that supports various features haptic, lottie, animation, ballon, etc.
MIT License
228 stars 28 forks source link

Slider don't show progress when is disable #66

Open ser-emejia opened 3 months ago

ser-emejia commented 3 months ago

Hello, first of all, thank you for your work on this, is amazing!

I have an issue, when I add the prop disable the slider does not show the current progress, Am I missing something?

import { Slider } from 'react-native-awesome-slider';

<Slider
    disable={true}
    minimumValue={min}
    maximumValue={max}
    progress={progress}
    thumbWidth={0}
    renderBubble={() => null}
    heartbeat={bufferingDuringPlay}
 />
alantoa commented 1 month ago

Hey, have you checked what happens if you set disableMinTrackTintColor?

<Slider
  theme={{
    disableMinTrackTintColor: '#fff',
    maximumTrackTintColor: '#fff',
    minimumTrackTintColor: '#000',
    cacheTrackTintColor: '#333',
    bubbleBackgroundColor: '#666',
    heartbeatColor: '#999',
  }}
/>
alantoa commented 1 month ago

I assume that the progress is being updated, but the color is the same as the track bar color. lmk if it doesn't work

ser-emejia commented 1 month ago

I assume that the progress is being updated, but the color is the same as the track bar color. lmk if it doesn't work

It works! Thank you :)