webraptor / react-native-deck-swiper

tinder like react-native deck swiper
ISC License
126 stars 81 forks source link

When stackSize=1, and using swipeBackCard, the card animation is overlap together when swipe back. #23

Closed dongdyang closed 3 years ago

dongdyang commented 3 years ago

When swipe back, the current one will not disappear immediately. After the swiped card is back and override the existing one. At this time, two cards are overlapped.

webraptor commented 3 years ago

That is actually the intended behaviour. The swipeBack method animates the card back on top of the deck. What you're describing is a deck of 1 card, sort of creating a paradox. The stackSize should be at least 2 for the swipeBack method. I've updated the readme to reflect this recommendation here