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.
Expo UI DisclosureGroup matches the official SwiftUI DisclosureGroup API and displays a disclosure indicator that reveals or hides content.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic disclosure group
DisclosureGroup is most commonly used inside a Form so it picks up the standard iOS list styling with a chevron indicator.
Initially expanded
Set isExpanded to true initially to show the content by default.
Custom label
Use DisclosureGroup.Label when the label needs custom SwiftUI content or modifiers instead of the label string prop.
API
import { DisclosureGroup } from '@expo/ui/swift-ui';
Component
Type: React.Element<DisclosureGroupProps>
ReactNodestringText label for the disclosure group. Use DisclosureGroup.Label for custom label content.
(isExpanded: boolean) => voidA callback that is called when the expansion state changes.