React Native Ticket for Expo

A boarding pass or event ticket with real notches and a stub you can tear off.

ProiOS · Android · Expo Go
9:41

Props

PropTypeDefault
brand / logo

Operator, venue or brand (and its logo), top-left.

string / ReactNode—
badge

Chip top-right ("VIP", "Business") — on holographic foil when holo.

string—
eyebrow

Small line above the title or route ("Boarding pass · TP 1043").

string—
title / subtitle

Event name and details (omit for a route pass).

string—
from / to

Route endpoints; a dashed flight path runs between them.

{ code: string; detail?: string }—
duration

Under the flight path ("7h 25m").

string—
transport

Icon riding the flight path.

"flight" | "train" | "bus" | "boat""flight"
fields

Details grid that wraps onto more rows; span widens a field.

{ label: string; value: string; span?: number }[][]
columns

Columns in the details grid.

numberup to 4
code

Printed in the stub and shown big on the back. Omit for a ticket without a stub.

string—
codeType

Look-alike code style — use renderCode for a scannable one.

"qr" | "barcode""qr"
renderCode

Draw a real code (e.g. react-native-qrcode-svg).

(code: string, size: number) => ReactNode—
notes

Lines on the back: terms, baggage, gate notes.

string | string[]—
image

Header photo (vertical) or full-bleed art (horizontal).

ImageSourcePropType—
layout

Pass with the stub below, or admit-one ticket with the stub on the right.

"vertical" | "horizontal""vertical"
theme

Preset, or { fill, stub?, ink, soft?, accent, pattern? } — fill can be a gradient.

"midnight" | "paper" | "aurora" | "sunset" | "neon" | "royal" | "mint" | TicketTheme"midnight"
tone

Shorthand for theme: midnight / paper.

"dark" | "light"—
accent

Route line, badge and stamp colour.

stringtheme accent
holo

Rainbow foil glare and a holographic badge.

booleanfalse
stamp / stampColor

Rubber stamp across the ticket ("CHECKED IN"); thumps in when set.

string / string— / accent
onTear

Enables swiping the stub off along the tear line; called once it's gone.

() => void—
torn

Controlled torn state (the stub is gone, the torn edge stays).

boolean—
flipped / defaultFlipped / onFlip

Controlled or uncontrolled side (tap to flip).

boolean / boolean / (flipped) => void— / false / —
tilt

Tilt toward the finger; false for long lists.

booleantrue
radius

Corner radius.

number22
labels

Every built-in string, for translation.

{ scan?, admit?, tear?, back? }English
style

Style for the root (width, margins).

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

theme
"midnight" | "paper" | "aurora" | "sunset" | "neon" | "royal" | "mint" | TicketTheme · default "midnight"Preset, or { fill, stub?, ink, soft?, accent, pattern? } — fill can be a gradient.
accent
string · default theme accentRoute line, badge and stamp colour.
style
StyleProp<ViewStyle>Style for the root (width, margins).
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
The card tilts toward your finger (tilt={false} turns it off). Tap to flip it to the big code and notes; with onTear set, swipe the stub sideways to tear it off.
Motion
A holo badge shimmers as the card leans, a stamp thumps down when set, and a torn stub falls away along the tear line.
Haptics
A success notification when the stub tears off.
Screen readers
One element whose label joins the brand, title or route, every field and the stamp; it is a button when there is a back to flip to.

Source

FAQ

How do I make a boarding pass in React Native?
Use ExpoKit's Ticket, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made boarding pass 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 Ticket work in Expo Go?
Yes. Ticket runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg, expo-haptics) are all included in Expo Go.
How do I add Ticket to my Expo app?
With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs react-native-svg, expo-haptics, so the code is yours to change. The install command is on this page for Pro members.
Is Ticket free?
Ticket 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.