# Checkout — React Native screen for Expo

A premium checkout: product bag with quantity steppers, delivery cards, payment method, a collapsible promo code, a live summary and a sticky “Slide to pay” bar that ends on an order-placed screen.

- Docs: https://expokit.in/docs/blocks/checkout
- Tier: Pro (ExpoKit Pro plan)
- Also called: checkout screen, cart and payment screen, ecommerce checkout
- Category: Blocks
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg, expo-haptics
- Uses ExpoKit items: kit, button, floating-input, slide-to-confirm, stepper
- Variants: Default, India, Custom Currency

## Installation

This screen is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `{ id, name, variant?, price, quantity, image? }[]` | `3 sample products` | Initial bag. Quantities and removals are kept in state. Each item can carry a `thumbnail` node (your own drawing) instead of an `image` URL. |
| `onItemsChange` | `(items) => void` | — | Quantity changed or an item was removed. |
| `shippingOptions` | `{ value, label, description?, price, icon? }[]` | `Standard / Express` | Delivery cards. price 0 shows 'Free'; icon is 'standard' \| 'express' \| 'pickup'. |
| `defaultShipping` | `string` | `first option` | Initially selected delivery option. |
| `paymentMethod` | `{ brand, last4, expiry? }` | `Visa •••• 4242` | Card shown in the Payment row. |
| `onChangePayment` | `() => void` | — | Shows a Change link on the payment row. |
| `onApplyPromo` | `(code) => number \| null \| Promise<…>` | — | Return the discount fraction (0.1 = 10%) or null. Omit to hide the promo row. |
| `defaultPromo` | `string` | — | A code to apply on mount (checked with onApplyPromo), e.g. a coupon picked on another screen. |
| `taxRate` | `number` | `0.08` | Tax on the discounted subtotal. |
| `onPay` | `(summary) => void \| Promise` | — | Slider completed. Resolve to show the order-placed screen; reject to slide back. |
| `orderNumber` | `string` | `'EK-48213'` | Shown on the success screen. |
| `onBack / onDone` | `() => void` | — | Header back button / success and empty-bag buttons. |
| `currency` | `string` | `'₹'` | Symbol placed before amounts by the default formatter (Indian digit grouping, decimals only when non-zero). |
| `formatPrice` | `(amount) => string` | `'₹1,23,456'` | Money formatter. Overrides currency — use for Intl, other grouping or suffix symbols like '12,50 €'. |
| `accent` | `string` | `theme accent` | Selection, steppers and the pay slider. |
| `style` | `StyleProp<ViewStyle>` | — | Root style. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## FAQ

### How do I make a checkout screen in React Native?

Use ExpoKit's Checkout, a Pro screen: with ExpoKit Pro, the ExpoKit CLI copies a ready-made checkout screen 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 Checkout work in Expo Go?

Yes. Checkout 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 Checkout to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the screen'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 Checkout free?

Checkout is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

### Can I change how Checkout looks?

Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit screen. The code lives in your project, so you can also edit anything directly.

## More

- Live preview, variants and code: https://expokit.in/docs/blocks/checkout
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
