React Native Swipe Deck for Expo

A card stack you swipe left or right; the top card leans in 3D and stamps a label.

ProiOS · Android · Expo Go
9:41

Props

PropTypeDefault
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) => stringindex
height

Card height.

number380
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).

booleanfalse
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 | nulllabels.like / labels.nope
rightColor / leftColor

Stamp colours.

stringtheme success / danger
stack

Cards visible behind the top one.

number2
radius

Corner radius of each card.

number24
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?
Use ExpoKit's Swipe Deck, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made Tinder-style card swiper into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Swipe Deck work in Expo Go?
Yes. Swipe Deck runs in Expo Go on iOS and Android with no development build.
How do I add Swipe Deck to my Expo app?
With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app, so the code is yours to change. The install command is on this page for Pro members.
Is Swipe Deck free?
Swipe Deck is part of ExpoKit Pro. With a Pro plan, log the CLI in once (npx @expokit/cli@latest login) and it installs the full source into your app.