开发者

How to drag a object with the snap points in react native?

开发者 https://www.devze.com 2022-12-07 19:29 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消