Skipperlla / rn-swiper-list

⚡ Lightning fast and customizable tinder-like swiper for React Native
https://www.npmjs.com/package/rn-swiper-list
MIT License
97 stars 9 forks source link

Add which side is gesture going #19

Open Smigi33 opened 3 weeks ago

Smigi33 commented 3 weeks ago

Hey, can You add prop in this functions onSwipeStart?: () => void; onSwipeEnd?: () => void; onSwipeActive?: () => void; which side gesture is going? Something like this? onSwipeStart?: (cardIndex, 'left' | 'right' | 'top', percentage) => void; onSwipeEnd?: (cardIndex, 'left' | 'right' | 'top', percentage) => void; onSwipeActive?: (cardIndex, 'left' | 'right' | 'top', percentage) => void;

Swipe percentage would be cool too, swiping card by half to side and callback func receive 50% etc. :D