This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
HStack
A SwiftUI HStack component for horizontal layouts.
For cross-platform usage, see the universal
Row— it renders the appropriate native component per platform.
Expo UI HStack matches the official SwiftUI HStack API and arranges its children horizontally.


Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic horizontal stack
With alignment
The alignment prop controls vertical alignment of children. Available options are: top, center, bottom, firstTextBaseline, and lastTextBaseline.
API
import { HStack } from '@expo/ui/swift-ui';
Component
Type: React.Element<HStackProps>
stringThe vertical alignment of children within the stack.
Acceptable values are: 'center' | 'top' | 'bottom' | 'firstTextBaseline' | 'lastTextBaseline'
ReactNode