This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
SwipeActions
一个 SwiftUI SwipeActions 组件,用于向行内容添加前置和后置滑动操作。
iOS
Included in Expo Go
Recommended version:
~57.0.22
Expo UI 的 SwipeActions 匹配官方 SwiftUI 的 swipeActions 修饰符,并允许你将前置或后置操作附加到行内容上。
安装
🌐 Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
SwipeActionsExample.tsx
应用接口
🌐 API
import { SwipeActions } from '@expo/ui/swift-ui';
Components
Type: React.Element<SwipeActionsProps>
Applies native SwiftUI swipe actions to its non-slot children.
Type: React.Element<SwipeActionsGroupProps>
The buttons revealed when the user swipes the regular content from an edge.