rafaelmotta / react-native-progress-bar-animated

📊 Simple, customizable and animated progress bar for React Native
52 stars 39 forks source link

backgroundColorOnComplete prop doesn't works #2

Closed themakerman closed 6 years ago

themakerman commented 6 years ago

backgroundColorOnComplete not working

`  <ProgressBarAnimated
                    width={WINDOW_WIDTH/1.5}
                    value={100}
                    maxValue={100}
                    barAnimationDuration={3000}
                    backgroundColorOnComplete="#000000"
                    backgroundAnimationDuration={1000}
                    backgroundColor="#FFA366"
/>`
themakerman commented 6 years ago

Okay after checking your expo project i figured out that the backgroundColorOnComplete will work only after setState is called which in turn will call componentWillUpdate and make it rerender......

In case anyone else faces the same thing note the above stuff....Thanks...closing this issue now.