This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Overlay
A SwiftUI Overlay component for layering content on top of another view.
iOS
tvOS
Included in Expo Go
Expo UI Overlay matches the official SwiftUI overlay modifier and provides a way to layer secondary content on top of a view, positioned with a specified alignment.


Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
OverlayExample.tsx
API
import { Overlay } from '@expo/ui/swift-ui';
Component
Type: React.Element<OverlayProps>
Optional • Type:
Alignment • Default: 'center'The alignment of the overlay content relative to the base content.