bartgryszko / react-native-circular-slider

React Native component for creating circular slider :radio_button:
MIT License
876 stars 190 forks source link

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

Open IgorVanian opened 7 years ago

IgorVanian commented 7 years ago

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?

bartgryszko commented 7 years ago

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.