shipt / segmented-arc-for-react-native

Segmented arc component for React Native
MIT License
93 stars 10 forks source link

Support dynamic `fillValue` values #103

Open micheleb opened 2 months ago

micheleb commented 2 months ago

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) 😢

jkhusanov commented 2 months ago

@micheleb could you provide a reproducible sample app?

micheleb commented 2 months ago

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.