react-native-circular-progress icon indicating copy to clipboard operation
react-native-circular-progress copied to clipboard

Change fill color as animation progresses

Open jovanovski opened this issue 6 years ago • 2 comments

Is it possible to change the fill color as the animation progresses? Basically I want to start the fill with green, fade it to yellow half way and the fade it to red when it gets full.

So no gradient, changing the whole fill of the circle, but based on the current value of the animation

jovanovski avatar Apr 26 '19 08:04 jovanovski

Not supported by this library unfortunately. You could try react-native-progress-wheel, which supports this feature.

RobertFOConnor avatar May 22 '19 20:05 RobertFOConnor

hi @jovanovski , I have faced the same issue as you did and the second tint color that was already added by @talhaazhar only helps if you want to go directly from 0 to 100 and the user wouldn't really care about the values in between. I have just created a new pull request that adds a third color to enhance the UI. For me, I needed green, yellow and red colors to show the user where is their credit card limit so far. Green means still at the beginning, Yellow means mid-way, Red means that they reached the limit. I hope this helps.

Monir-Shembesh avatar Mar 27 '20 23:03 Monir-Shembesh