This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
分割线
一个用于创建视觉分隔符的 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.