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).
分隔线
一个用于创建视觉分隔符的 SwiftUI Divider 组件。
iOS
tvOS
Included in Expo Go
Expo UI Divider 与官方 SwiftUI Divider API 保持一致,并在内容之间创建一个视觉分隔线。


安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
基础分隔线
BasicDividerExample.tsx
列表中的分隔线
DividerInListExample.tsx
上下文菜单中的分隔线
分隔线通常用于在上下文菜单中分隔不同的操作组。
DividerInContextMenuExample.tsx
API
import { Divider } from '@expo/ui/swift-ui';
Component
Type: React.Element<DividerProps>
Divider component uses the native Divider component. A visual element that can be used to separate other content.