Kinetik UI

Wallet Stack

.md

Glint Cards tucked in a stitched leather pocket: tap to fan them out, with the balance counting up.

v1.0.0Live on webreact-native-reanimatedreact-native-worklets
Component preview

Installation

Kinetik CLI
npx kinetik-ui add wallet-stack

The CLI copies the source and installs native dependencies with npx expo install, so versions match your Expo SDK. With shadcn: npx shadcn@latest add https://kinetik-ui.dev/r/wallet-stack.json

Install manually

  1. Install dependencies
    npx expo install react-native-reanimated react-native-worklets
  2. Copy the source files
    • components/kinetik/wallet-stack.tsx
    View source files

Usage

import { WalletStack } from '@/components/kinetik/wallet-stack';

<WalletStack
  balance={account.balance}
  cards={account.cards.map((c) => ({ id: c.id, name: c.product, last4: c.last4 }))}
  onCardPress={(card) => router.push(`/cards/${card.id}`)}
/>;

When to use

  • A wallet or accounts overview with two to four cards and one total.

When not to use

  • Many cards: the pocket shows up to four. Use a list or Parallax Carousel.
  • Showing full card numbers: faces show the name and last four digits only.

Notes

  • Each card is a Glint Card: while the wallet is open, the light follows your finger across a card (no motion sensors, so opening stays smooth). Pass your own background gradients to match real card designs; no card-network logos are drawn.
  • Cards are only tappable while the wallet is open; tapping the pocket opens and closes it.
  • The balance counts up when it changes; cents show quieter after the whole amount.

Props

WalletStackProps

PropTypeDefaultDescription
cardsrequiredreadonly WalletCard[]—Up to four cards, back to front.
balancerequirednumber—
currencystring'$'Defaults to "$".
balanceLabelstring'Total balance'Line above the balance. Defaults to "Total balance".
titlestring'Wallet'Title above the cards. Defaults to "Wallet".
onCardPress(card: WalletCard) => void—Called with a card when it is tapped while the wallet is open.
hapticsbooleantrueA tick when the wallet opens and closes. Defaults to true.
styleStyleProp<ViewStyle>—

Performance and accessibility

Performance

Budget
Opening and closing is one UI-thread spring shared by every card. The Glint Cards follow the finger (no motion sensors) while the wallet is open; closed, nothing animates.
Measured

Pixel 9 emulator, API 35, release build · interaction median 2.00× the system Settings app on the same emulator (indicative only) · no frames drawn at rest · 173 MB app memory. Frames are measured while opening and closing: the wallet grows in height (a layout pass per frame) for about 0.6 s per toggle; framestats show ~6 ms of app work, the rest the emulator GPU. Closed or open at rest, nothing animates.

Real-device measurement pending.

Accessibility

Reduced motion
The wallet opens and closes without springing, the balance shows at once and the cards hold a still reflection (Glint Card).
Screen readers
The pocket is a button reading the title and balance, with a hint to show or tuck the cards; cards are buttons only while the wallet is open.
Touch target
The pocket is about 190 pt tall; open cards are full width and 150 pt tall.

Source files

components/kinetik/wallet-stack.tsx is in the Code tab of the preview above.