update doc for onSwipeStart and onSwipeEnd events

This commit is contained in:
Dani Akash
2018-10-23 11:50:30 +05:30
committed by GitHub
parent 093ae411c7
commit 3ef0e679bb

View File

@@ -50,6 +50,8 @@ import CardStack, { Card } from 'react-native-card-stack-swiper';
## CardStack events
| Props | type | description |
| ----------------- | ------------- | --------------------------- |
| onSwipeStart | func | function to be called when a card swipe starts |
| onSwipeEnd | func | function to be called when a card swipe ends (card is released) |
| onSwiped | func | function to be called when a card is swiped. it receives the swiped card index |
| onSwipedLeft | func | function to be called when a card is swiped left. it receives the swiped card index |
| onSwipedRight | func | function to be called when a card is swiped right. it receives the swiped card index |