API Reference
Main Exports
createSwipeDeck<T>(config?)
Creates a typed deck family.
The returned instance includes:
RootCarduseDeckStateuseDeckActionsuseDeckInteractionuseDeckEventuseDeckEventListener
SwipeDeck.Root Props
Static SwipeDeck.Root accepts the same props except id.
SwipeDeck.Card Props
SwipeRenderInfo<T> includes item, index, offset, role, and
isActive.
State And Actions
Programmatic actions return boolean to tell whether the action was accepted.
Interaction
useDeckInteraction() returns Reanimated shared values for progress,
signedProgress, direction, dismissDirection, translationX,
translationY, isDragging, and phase.
Events
Use useDeckEvent for latest event snapshots and useDeckEventListener for
imperative subscriptions.
Motion Helpers
SwipeDeckMotion.tinder(options?)SwipeDeckActionMotion.direct(options?)SwipeDeckActionMotion.springboard(options?)SwipeDeckUndoMotion.spring(options?)SwipeDeckUndoMotion.timing(options?)
For behavior details, prefer the guide pages over treating this reference as an onboarding surface.
