I think this is a more declarative way to update the marker positions by updating the values prop. Instead of calling set(values) through refs to change the slider values programmatically.
I removed the RN dependency, because a RN project with a different RN version will cause naming collisions. And RN is available in a RN project anyways.
@jrans Would it be an option to switch to the RN Animated API to update the marker position during update or drag? This would enable more smooth animations.
Thanks for this! Good idea. Tbh, I'd love to rewrite it all when I have the time off work! Feel free to submit the PR to solve this but hopefully I can jump back on this soon enough.
I think this is a more declarative way to update the marker positions by updating the
values
prop. Instead of callingset(values)
throughrefs
to change the slider values programmatically.I removed the RN dependency, because a RN project with a different RN version will cause naming collisions. And RN is available in a RN project anyways.
@jrans Would it be an option to switch to the RN Animated API to update the marker position during update or drag? This would enable more smooth animations.