This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Overlay
用于在另一个视图上叠加内容的 SwiftUI Overlay 组件。
iOS
tvOS
Included in Expo Go
Expo UI Overlay 与官方 SwiftUI overlay 修饰符相匹配,提供了一种将次要内容叠加到视图之上,并按照指定对齐方式定位的方法。


安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
OverlayExample.tsx
API
import { Overlay } from '@expo/ui/swift-ui';
Component
Type: React.Element<OverlayProps>