Props
| Prop | Type | Default |
|---|---|---|
| data Items, one card each. | T[] | — |
| renderItem Render a card. `front` is true for the card in front. | ({ item, index, front }) => ReactNode | — |
| keyExtractor React key for each card. | (item: T, index: number) => string | index |
| cardHeight Card height. | number | 190 |
| peek How much of each card shows behind the front one when closed. | number | 14 |
| spread Space between cards when open. | number | 64 |
| depth Cards visible behind the front one when closed. | number | 3 |
| selected Controlled front card (index into data). | number | — |
| onPressFront Tap on the front card while closed (pay with it); the cards behind still open the stack. | (index) => void | — |
| getAccessibilityLabel Screen-reader label for each card. | (item, index) => string | "Card 2 of 4" |
| defaultSelected Uncontrolled initial front card. | number | 0 |
| onSelect Fires when a card is picked. | (index: number) => void | — |
| open Controlled open state. | boolean | — |
| onOpenChange Fires when the stack opens or closes. | (open: boolean) => void | — |
| radius Corner radius of each card. | number | 18 |
| 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
- Tap the closed stack to fan it open, then tap a card to bring it to the front as the stack closes. With onPressFront, a tap on the front card calls it instead.
- Motion
- Cards behind the front one shrink and tilt back in 3D depth. Opening, closing and reordering all run on springs.
- Screen readers
- Each card is a button with selected and expanded state, labelled "Card 2 of 4" by default or by getAccessibilityLabel.
Source
FAQ
How do I make a stacked card wallet in React Native?
Does Card Stack work in Expo Go?
How do I add Card Stack to my Expo app?
Is Card Stack free?
npx @expokit/cli@latest login) and it installs the full source into your app.