This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
FieldGroup
一个可滚动的、分组的设置风格行的容器。
一个可滚动的容器,用于分组的设置风格行,模仿 iOS 设置屏幕的外观。在内部组合使用 FieldGroup.Section(用于显式分组)、FieldGroup.SectionHeader 和 FieldGroup.SectionFooter 插槽。
🌐 A scrollable container for grouped settings-style rows, mirroring the look of an iOS Settings screen. Compose FieldGroup.Section (for explicit groups), FieldGroup.SectionHeader, and FieldGroup.SectionFooter slots inside.
注意:
FieldGroup是可滚动的,并且自身没有高度。它会拉伸以填充父容器,所以要给它一个有明确大小的父容器,比如<Host style={{ flex: 1 }}>或者一个有明确高度的宿主。它不会出现在像<Host matchContents>这样的自适应大小容器中,因为没有固定高度供它填充。


安装
🌐 Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
分段表格
🌐 Sectioned form
自定义部分页眉和页脚
🌐 Custom section header and footer
使用 FieldGroup.SectionHeader 和 FieldGroup.SectionFooter 来呈现完全样式化的页眉/页脚插槽,以替代默认的 title 文本。
🌐 Use FieldGroup.SectionHeader and FieldGroup.SectionFooter to render fully styled header/footer slots in place of the default title text.
应用接口
🌐 API
import { FieldGroup } from '@expo/ui';
No API data file found, sorry!