webraptor / react-native-deck-swiper

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

Lag in onTapCard, onSwipedLeft, onSwipedRight after performing swipeBack #79

Open mfsi-anup opened 1 year ago

mfsi-anup commented 1 year ago

Hi,

Thanks for the library maintenance. I am performing actions like onSwipedLeft, onSwipedRight, onTapCard which are working as expected [without any delay] . However, after performing swipeBack, there is a time lag before which I am able to correctly perform above actions. [ Working fine after time lag, however the time lag is not desired]

Can anyone help me with the issue, so that I can perform card actions immediately after swipeBack is done?

kenyon-bll commented 1 year ago

I'm experiencing this issue as well. I believe it is due to awaiting for the animation to finish but I'm not certain how reduce the animation timeframe.

this.animatePreviousCard(this.calculateNextPreviousCardPosition(), cb)

Any help would be greatly appreciated!

LectricAvenue commented 1 year ago

I am also experiencing this issue. My previous card seems to re-render as soon as the animation is complete for swipeBack.

bruteforks commented 1 year ago

Let me know if this is the behavior you are talking about? I added a gif to show the issue better #99

paolopedrigal commented 3 months ago

I am experiencing a similar issues after performing swipeBack. After swipeBack is called the previous card being rendered has an image and flickers after the swipeBack animation.