tarasvakulka / react-native-cards-swipe

Card Stack Swiper implemented with Reanimated 2 and React Native Gesture Handler
MIT License
57 stars 15 forks source link

The onSwipeStart callback has no information about where the user is swiping #5

Closed moleinik closed 2 years ago

moleinik commented 2 years ago

I ran into a problem with onSwipeStart. Сallback doesn't have any data about the card swipe direction. We can get only index and that's all. Can we get more additional information about cards in callbacks (onSwipeStart, onSwipeEnd)?

tarasvakulka commented 2 years ago

Probably yes, PRs are welcome) For now I'm quite busy and can't estimate correctly when I can implement this feature, but I can ping you when this will be ready. Also you can use onSwipedLeft and onSwipedRight callbacks if you need swipe direction in moment when card finish swiping.

moleinik commented 2 years ago

Nice) I will create a merge request after the weekend. Thank you for your response, @tarasvakulka. I think that this issue is not relevant from now on. I will close it.