Skip to content

Conversation

@YoussefHenna
Copy link
Collaborator

@YoussefHenna YoussefHenna commented Dec 11, 2025

Important

Add jumpToCardIndex function to DeckSwiper for programmatic card navigation.

  • Behavior:
    • Adds jumpToCardIndex function to DeckSwiper component, allowing programmatic navigation to a specific card index.
    • Implemented in React.useImperativeHandle within DeckSwiper.tsx.

This description was created by Ellipsis for 9f5005e. You can customize this summary. It will automatically update as commits are pushed.

@YoussefHenna YoussefHenna merged commit 758f054 into master Dec 11, 2025
2 of 3 checks passed
@YoussefHenna YoussefHenna deleted the youssef/deck-swiper-jump-method branch December 11, 2025 11:20
deckSwiperRef.current?.swipeLeft();
}
},
jumpToCardIndex: (index: number) => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update DeckSwiperRef interface to include jumpToCardIndex (index: number) => void for type safety.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants