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 组件。
Expo UI 分隔线与官方 SwiftUI Divider API 相匹配,并在内容之间创建视觉分隔符。
🌐 Expo UI Divider matches the official SwiftUI Divider API and creates a visual separator between content.


安装
🌐 Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
基础分隔线
🌐 Basic divider
列表中的分隔线
🌐 Divider in a list
上下文菜单中的分隔符
🌐 Divider in a context menu
分隔符通常用于在上下文菜单中分隔操作组。
🌐 Dividers are commonly used to separate groups of actions in context menus.
应用接口
🌐 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.