react-native-elements / react-native-elements-universe

MIT License
9 stars 6 forks source link

an arc slider #9

Closed silencer07 closed 3 years ago

silencer07 commented 3 years ago

Would be nice if there is an option to arc the slider, values 0-89 degrees. The available arc sliders are too old already

Describe alternatives you've considered react-native-circular sliders and the like

Additional context google image search reference

flyingcircle commented 3 years ago

@silencer07 that sounds like an interesting suggestion. Maybe you can fork one of the outdated libraries, update it, and then we can pull it into RNE?

pranshuchittora commented 3 years ago

@flyingcircle I think we can pull off arc slider in RNE easily as that requires working over the SVG paths. We can use the current slider to extend the functionality of our Arc Slider.

vividh commented 3 years ago

I'm interested to work on this. Any pointers?

@flyingcircle I think we can pull off arc slider in RNE easily as that requires working over the SVG paths. We can use the current slider to extend the functionality of our Arc Slider.

Do you mean by adding a few props to the existing Slider component, it can be displayed as arc (something like presentationMode={'arc' | 'line'}), or should this be an entirely separate new component?

flyingcircle commented 3 years ago

If it is possible, I think it is usually better to have it be a separate component. If there's a way that you can find to reuse code between the 2 that'd be even better.

ArenaGrenade commented 3 years ago

Hi! @flyingcircle seems like nobody is working on this. I want to pick this up.

ArenaGrenade commented 3 years ago

@flyingcircle I think we can pull off arc slider in RNE easily as that requires working over the SVG paths. We can use the current slider to extend the functionality of our Arc Slider.

I don't think this would be feasible as of the current state of the library as I don't see any SVG based code or am I missing something...