bartgryszko / react-native-circular-slider

React Native component for creating circular slider :radio_button:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Full 2*PI clockwise position : the circle is not colored

IgorVanian opened this issue · comments

commented

Hello,
For the circle, I managed to set a max value and a step value.
If i push the end thumb to the end of the circle (max value : 2*PI), the gradient is null even if the angle is not 0.

screen

Is there a way to push the gradient up to the max value?

You'd probably need to play wit https://github.com/bgryszko/react-native-circular-slider/blob/master/src/CircularSlider.js#L21 variable, as if you take a look in the code I do % (2 * Math.PI). I'm happy to accept the PR where you can set an option on the copoment to count more than just one full circle.