alexandre-garrec / react-swipe-card

Tinder style swipe cards
https://alexandre-garrec.github.io/react-swipe-card
136 stars 79 forks source link

This component should bind the key/id of the data item to the callbacks #10

Open JoaoCnh opened 7 years ago

JoaoCnh commented 7 years ago

What I mean is if I swipe left or swipe right you should be able to know which one of those items was swiped.

Is there any way right now to know?

Looking through the source code I see you call this callback "onOutScreen[direction]"

Does not work any single time.