How to drag a object with the snap points in react native?
I am using https://github.com/tongyy/react-native-draggable to drag my element but my issue is that i wan开发者_如何学编程t to drag the object at snap points.
for example:- if i drag my element for 0 to 100 the if should move from 1 to 10 then 20 then 30 and so on but current i am getting like 1 to 1.0023 to 1.045 to 2.23 and so on.
i want dont want to drag smoothly i want to drag at certain snap points.
精彩评论