This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Checkbox

A toggle control that represents a checked or unchecked state.

Android
iOS
Web
Included in Expo Go
Recommended version:
~56.0.26

A controlled checkbox. Pair value with onValueChange to manage state from React.

Installation

Terminal
- npx expo install @expo/ui
- yarn expo install @expo/ui
- pnpm expo install @expo/ui
- bun expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

Basic checkbox

CheckboxExample.tsx
import { useState } from 'react'; import { Host, Checkbox } from '@expo/ui'; export default function CheckboxExample() { const [accepted, setAccepted] = useState(false); return ( <Host matchContents> <Checkbox label="I accept the terms" value={accepted} onValueChange={setAccepted} /> </Host> ); }

Disabled

DisabledCheckboxExample.tsx
import { Host, Checkbox } from '@expo/ui'; export default function DisabledCheckboxExample() { return ( <Host matchContents> <Checkbox label="Locked option" value onValueChange={() => {}} disabled /> </Host> ); }

API

import { Checkbox } from '@expo/ui';

No API data file found, sorry!