I spent 3 days developing Custom Slider and Range Slider for React Native. I am astonished to see that the slider components in React Native are so basic and don't allow any customization. I wanted to share the Slider scripts I made so everyone can use them in their projects.
Don't hesitate to reach out if you detect any bugs or problems. (These scripts are fully compatible with Expo)
const stepRender = (value, step = 5) => { if(step === 0) return 0; else return Math.trunc(value/step) * step; };
For example :{stepRender(animState.displayMinVal)}
The value will only be updated when the result is in a new range of 5 – Augury