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>