wix-incubator / react-native-interactable

Experimental implementation of high performance interactable views in React Native
MIT License
5.19k stars 515 forks source link

Snap points with easing? #75

Open kptlronyttcna opened 7 years ago

kptlronyttcna commented 7 years ago

Can I replace the springy behaviour of snap points with some easing function? With the current API it's really hard to implement a proper bottom sheet behavior or even a drawer. Everything just moves around too much. I guess the easing can be done using animated and interpolate but the springy behaviour on snap points gets in the way.

DylanVann commented 6 years ago

There's damping and tension which you could adjust. If you want an ActionSheet like behavior you could just use Animated. The normal ActionSheet behavior does not include dragging.