max value
sandeep855 opened this issue · 2 comments
sandeep855 commented
if you pass a value in max greater than 6 digits eg: max={9999999} It hangs your device to load this value. Sometimes crashes the app.
sheralim012 commented
react-native-multi-slider/converters.js
Lines 84 to 86 in 7919a26
For very large min & max and very small step, above loop generates very large array which causes the crash. Better to dynamically use the step value like
step = Math.round(Math.abs(max - min) / 100)
This will force the loop to execute only 100 times.
Hope this helps.
ptomasroos commented
Thanks! Added to the readme @sheralim012