This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Switch
A Jetpack Compose Switch component for toggle controls.
Android
Included in Expo Go
Recommended version:
~56.0.26
For cross-platform usage, see the universal
Switch— it renders the appropriate native component per platform.
Expo UI Switch matches the official Jetpack Compose Switch API.


Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Toggle switch
ToggleSwitchExample.tsx
Custom colors
CustomColorsExample.tsx
Custom thumb content
Use Switch.ThumbContent to render a custom element inside the thumb. Switch.DefaultIconSize gives you the M3 default icon size so your content fits perfectly.
ThumbContentExample.tsx
API
import { Switch } from '@expo/ui/jetpack-compose';
No API data file found, sorry!