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.
iOS
tvOS
Included in Expo Go
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
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic horizontal stack
BasicHStackExample.tsx
With alignment
The alignment prop controls vertical alignment of children. Available options are: top, center, bottom, firstTextBaseline, and lastTextBaseline.
HStackAlignmentExample.tsx
API
import { HStack } from '@expo/ui/swift-ui';
Component
Type: React.Element<HStackProps>