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

Counting is weird

Open Kaique292 opened this issue 8 months ago • 1 comments
trafficstars

https://raw.githubusercontent.com/nithinpp69/react-native-circular-progress-indicator/main/examples/demo9.gif

Counting is weird.

The component is doing the math as follows:

0,1,2,3,...,8,9,1,11,...,19,2,21

And it should be: 0,1,2,3,...,8,9,10,11,...,19,20,21

So that the animation is fluid

Kaique292 avatar Mar 01 '25 13:03 Kaique292

+1 on iOS 0.78

iy-913 avatar Mar 06 '25 14:03 iy-913

same

vladislav-marchenko avatar Mar 22 '25 16:03 vladislav-marchenko

same error

elalami-m avatar Jun 17 '25 14:06 elalami-m

same error, did you find any solution?

ahmetcangurel avatar Jun 19 '25 11:06 ahmetcangurel

Hi there! My workaround for this issue is to pass progressFormatter function like this:

				       progressFormatter={(value: number) => {
						'worklet'
						const val = `${Math.round(value)}% `
						return val
					}}

Now component shows correct value

lactivka avatar Jul 07 '25 07:07 lactivka

Thanks @lactivka ! You're a lifesaver.

GankCC avatar Jul 25 '25 07:07 GankCC