segmented-arc-for-react-native icon indicating copy to clipboard operation
segmented-arc-for-react-native copied to clipboard

Support dynamic `fillValue` values

Open micheleb opened this issue 1 year ago • 3 comments

Hey there! 👋🏻

I had the same issue as #88: providing dynamic values for fillValue does not update the position of the Cap component.

I patched the dependency locally and it works as expected, will create a PR right away. Sorry but I don't have the time to write tests for it ATM (it's for a side project) 😢

micheleb avatar Aug 12 '24 17:08 micheleb

@micheleb could you provide a reproducible sample app?

jkhusanov avatar Aug 12 '24 17:08 jkhusanov

Sure, I edited the example app so that it updates fillValue on button press. If you run it from this branch you'll see that the segment label is updated, but the cap never changes.

If you use this branch instead (which includes the commit from #104), the animation is run.

micheleb avatar Aug 12 '24 17:08 micheleb

Any updates on this?

Ray5055 avatar Dec 16 '24 01:12 Ray5055