# Checkbox — React Native component for Expo

> A checkbox whose tick draws itself in as the box squishes and a ring bursts out.

The tick draws itself in, the box squishes on press and a ring bursts out. Labels, descriptions and to-do strike-through.

- Docs: https://expokit.in/docs/components/checkbox
- Tier: Free
- Also called: animated checkbox, check box, todo checkbox
- Category: Selection
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: react-native-svg
- Uses ExpoKit items: kit
- Variants: Default, With Description, Todo List, Colors

## Installation

Run once per project: `npx @expokit/cli@latest init` (shared theme + KitProvider). Then:

```bash
npx @expokit/cli@latest add checkbox
```

The CLI copies the source into your project (you own the code) and installs react-native-svg.

Import: `import { Checkbox } from "@/components/ui/checkbox";`

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `checked / onChange` | `boolean` | — | Controlled state (or use defaultChecked). |
| `defaultChecked` | `boolean` | `false` | Initial state when uncontrolled. |
| `label` | `string` | — | Text next to the box. |
| `description` | `string` | — | Secondary line. |
| `strike` | `boolean` | `false` | Strike the label through when checked. |
| `shape` | `"square" \| "circle"` | `"square"` | Rounded square (corner = size / 3.4) or full circle. |
| `size` | `number` | `24` | Box width and height in points; the tick is 80% of it. |
| `accent` | `string` | `theme accent` | Checked colour. |
| `disabled` | `boolean` | `false` | Dims to 50% and blocks presses. |
| `style` | `StyleProp<ViewStyle>` | — | Style for the pressable row holding the box and label. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: The whole row toggles. The box squishes on press-in and bounces back on release.
- **Motion**: The fill and tick spring in together, and a ring bursts outward each time it becomes checked.
- **Screen readers**: A checkbox with checked and disabled state.

## FAQ

### How do I make an animated checkbox in React Native?

Use ExpoKit's Checkbox: run npx @expokit/cli@latest add checkbox in your Expo or React Native project and it copies a ready-made animated checkbox into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Checkbox work in Expo Go?

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

Run npx @expokit/cli@latest add checkbox in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.

### Is Checkbox free?

Yes. Checkbox is free: its full source is on this page and the CLI installs it without an account.

### Can I change how Checkbox 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 component. The code lives in your project, so you can also edit anything directly.

## More

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