Props
| Prop | Type | Default |
|---|---|---|
| data Items, one card each (top first). | T[] | — |
| renderItem Render a card. | (item: T, index: number) => ReactNode | — |
| keyExtractor React key for each card. | (item: T, index: number) => string | index |
| height Card height. | number | 380 |
| onSwipe Fires when a card leaves, with "left" or "right". | (direction, item, index) => void | — |
| index / onIndexChange Controlled top card; a fresh batch (first key changed) starts from the top on its own. | number / (index) => void | — / — |
| disabled Swiping off (e.g. out of likes). | boolean | false |
| onEmpty Fires once every card is gone. | () => void | — |
| renderEmpty Shown when the deck is empty. | () => ReactNode | — |
| rightLabel / leftLabel Stamp shown while dragging; null hides it. | string | null | labels.like / labels.nope |
| rightColor / leftColor Stamp colours. | string | theme success / danger |
| stack Cards visible behind the top one. | number | 2 |
| radius Corner radius of each card. | number | 24 |
| ref Throw the top card from a button, or bring the last one back; reset() starts again from the first card. | { swipe(direction), undo() } | — |
| style Style for the root view. | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- style
- StyleProp<ViewStyle>Style for the root view.
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Touch
- Drag the top card past the threshold or flick it to throw it off; a short drag springs back. A ref exposes swipe, undo and reset for buttons.
- Motion
- The card follows your finger, rotates and tilts in 3D, washes in the right or left colour and shows the stamp, while the next card rises.
- Screen readers
- Only the top card is exposed. It offers the right and left labels as accessibility actions, which throw the card that way.
Source
FAQ
How do I make a Tinder-style card swiper in React Native?
Does Swipe Deck work in Expo Go?
How do I add Swipe Deck to my Expo app?
Is Swipe Deck free?
npx @expokit/cli@latest login) and it installs the full source into your app.