rn-slider-switch
rn-slider-switch copied to clipboard
more parameterized, hence customizable, multiswitch
@ffurkAn Thanks for the effort man. It means a lot.
I'm kind of transforming the whole thing to work better using react-native-gesture-handler
Will merge this code if i'm unable to do it
You're welcome. I've tried different switches. But, yours were the simplest and the easiest to integrate. To give you ideas, I have some thoughts about the components future. If these not in your agenda, you may consider them to add.
- I want to set a ratio such as 1:4 (width:height with min default values), so that multiswithc cannot have the values like 20 width and 100 height.
- In my case, I have a swipeable card and it has a multiswitch on it. When I use MultiSwitch on another component which has swipe ability, something goes wrong about the switch. To solve that, I disabled the onPanResponderMove. It only works when you touch the buttons. It gives me the idea that, this can be done with a simple parameter, i.e swipeable={true}.
- MultiSwitch can be vertical as well. It means animation axis should be converted from x to y.
regards