This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
LazyVStack
A SwiftUI LazyVStack component for lazy vertical layouts.
Expo UI LazyVStack matches the official SwiftUI LazyVStack API and arranges its children vertically, creating items only as needed (when they become visible during scrolling).
LazyVStackis not truly lazy yet: the native side only builds visible items, but React still creates every child up front, so large lists can be slow to mount. We are working on improving this. For large lists, we recommend FlashList or Legend List.
Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic lazy vertical stack
LazyVStack should be used inside a ScrollView to enable lazy rendering.
With alignment
The alignment prop controls horizontal alignment of children. Available options are: leading, center, and trailing.
API
import { LazyVStack } from '@expo/ui/swift-ui';
Component
Type: React.Element<LazyVStackProps>