This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
DisclosureGroup
A SwiftUI DisclosureGroup component for displaying expandable content.
iOS
Expo UI DisclosureGroup matches the official SwiftUI DisclosureGroup API and displays a disclosure indicator that reveals or hides content.
Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic disclosure group
BasicDisclosureGroupExample.tsx
Initially expanded
Set isExpanded to true initially to show the content by default.
InitiallyExpandedExample.tsx
API
import { DisclosureGroup } from '@expo/ui/swift-ui';
Component
Type: React.Element<DisclosureGroupProps>
Type:
ReactNodeOptional • Type:
(isExpanded: boolean) => voidA callback that is called when the expansion state changes.