This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 57).
Collapsible
A labelled tappable header that toggles visibility of its content.
Collapsible is a primitive that shows or hides its content with a tap on a labelled header. Controlled via isOpen and onOpenChange — each Collapsible manages independent state.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic collapsible
Accordion (one section open at a time)
Wire each Collapsible's isOpen to a shared parent value. The component doesn't enforce exclusivity — composition is up to the consumer.
API
import { Collapsible } from '@expo/ui';
Component
Type: React.Element<CollapsibleProps>
A primitive that toggles visibility of its content via a labelled tappable
header. Controlled via isOpen + onOpenChange.
Props for the Collapsible component, a primitive that
shows or hides its content with a tap on a labelled header.
{
color: string,
fontFamily: string,
fontSize: number,
fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900',
letterSpacing: number,
lineHeight: number,
textAlign: 'center' | 'left' | 'right'
}Text-specific styling for the tappable header label.