-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): extend gesture handler #12
base: main
Are you sure you want to change the base?
feat(core): extend gesture handler #12
Conversation
@tarasvakulka Can you please checkout the changes ? |
import CardWrap from '../CardWrap'; | ||
import SwipePan, { SWIPE_DIRECTION } from '../SwipePan'; | ||
import styles from './styles'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, do not change order of imports. Keep the next order: library, own components, other stuff.
@@ -275,12 +278,14 @@ const CardsSwipe = forwardRef( | |||
cardContainerStyle, | |||
}} | |||
> | |||
{renderCard(cards[secondIndex])} | |||
{renderCard(cards[secondIndex], index)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be in this case you should pass secondIndex instead index ? It would be the right, if you need index of card that render
onStart: (event: GestureHandleEvent) => void; | ||
onEnd: (event: GestureHandleEvent) => void; | ||
onChangeDirection: (direction: SWIPE_DIRECTION) => void; | ||
children: React.ReactNode; | ||
onDragAround: (event: GestureHandleEvent) => void; | ||
onFinish: (event: GestureHandleEvent) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, update documentation with all these changes.
No description provided.