# Gift Card — React Native component for Expo

> A photo gift card that tilts toward your finger and flips to reveal its code.

A gift card on any photo — the amount, a note and who it's for on the front; tap to flip it and read the redeem code off a brushed-silver panel, with a copy button. Tilts toward your finger with a moving reflection; redeemed state.

- Docs: https://expokit.in/docs/components/gift-card
- Tier: Pro (ExpoKit Pro plan)
- Also called: gift card, voucher card, 3D gift card
- Category: 3D
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit, tilt-card, flip-card
- Variants: Received Gift, Send Gift, My Gift Cards

## Installation

This component 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 |
| --- | --- | --- | --- |
| `amount` | `string` | — | Formatted amount, e.g. "₹2,000". |
| `brand` | `string` | — | Store / brand, top-left. |
| `message` | `string` | — | Short note on the front. |
| `from / to` | `string` | — | Who sent it and who it's for. |
| `code` | `string` | — | Redeem code, revealed on the back (grouped in fours). |
| `validity` | `string` | — | Expiry line on the back. |
| `onCopy` | `(code: string) => void` | — | Shows a Copy button — wire it to expo-clipboard. |
| `image` | `ImageSourcePropType` | `deep plum` | Card art — a photo or texture (require() or { uri }). |
| `tone` | `"light" \| "dark"` | `"light"` | Light text for dark art, dark text for pale art. |
| `redeemed` | `boolean` | `false` | Dim the card with a Redeemed label. |
| `flipped / defaultFlipped / onFlip` | `boolean / boolean / (flipped) => void` | `— / false / —` | Controlled or uncontrolled side. |
| `tilt` | `boolean` | `true` | Tilt toward the finger. |
| `radius` | `number` | `18` | Corner radius. |
| `background` | `string` | `"#2a1630"` | Card colour when there is no image. |
| `labels` | `{ tag?, for?, from?, redeemed?, code?, back?, copy?, copied? }` | `English` | Every built-in string, for translation. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the root. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: Tap the card to flip it over to the redeem code. The copy button calls onCopy and reads "Copied ✓" for a moment.
- **Motion**: With tilt on (the default) the card leans toward your finger with a moving reflection, then turns over in 3D on a spring.
- **Screen readers**: The card is a button labelled with the brand, amount and redeemed state; the code is added to the label once it is flipped.

## FAQ

### How do I make a gift card in React Native?

Use ExpoKit's Gift Card, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made gift card 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 Gift Card work in Expo Go?

Yes. Gift Card runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.

### How do I add Gift Card 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, so the code is yours to change. The install command is on this page for Pro members.

### Is Gift Card free?

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

## More

- Live preview, variants and code: https://expokit.in/docs/components/gift-card
- 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
