React-native-interactable: [Feature Request] snap disable

Created on 29 Mar 2017  路  4Comments  路  Source: wix/react-native-interactable

is that possible to disable the snap on the element cause I want to use setVelocity to control the animation only.

Most helpful comment

Added support on master for iOS only, take a look if this is what you want. @ButtersHub Android next?

All 4 comments

you want to disable dragging by the user?

or do you not want to snap to the pre-defined positions at all?

I want to disable the user dragging.
In some situation, I don't want the modal can be dismissed by dragging.

It's a cool feature, let's add it.

In the meantime, you can do the following:

When you don't want the modal to be dismissed, setState() and change the snapPoints prop of the Interactable view and only leave one point (remove the point outside the screen). When the user can dismiss, run setState() again and add the missing snapPoint

Added support on master for iOS only, take a look if this is what you want. @ButtersHub Android next?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

motiazu picture motiazu  路  5Comments

sewerrat picture sewerrat  路  7Comments

yoavrofe picture yoavrofe  路  4Comments

tikkichan4 picture tikkichan4  路  5Comments

elanpang picture elanpang  路  5Comments