alexbrillant / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
1.57k stars 464 forks source link

Possible to animate swipe back based on touch position? #289

Open CDBridger opened 4 years ago

CDBridger commented 4 years ago

I'm using the onSwiping to detect if they are swiping back for me, to call the swipeBack function. But I'd rather that if they are swiping back the card gets moved over the top of the current card. Is this possible? Otherwise the user starts swiping back, can see the next card underneath, the callback gets triggered, and then the previous card animates over the top.

The gif below shows me scrolling forward then backwards to give a better understanding.

scrolling