This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 55).
Column
A vertical layout container for universal @expo/ui components.
Android
iOS
Web
Included in Expo Go
For the complete documentation index, see llms.txt. Use this file to discover all available pages.
A vertical layout container that arranges its children from top to bottom. Delegates to SwiftUI's VStack on iOS, Jetpack Compose's Column on Android, and a flex View on web.
Installation
Terminal
- npx expo install @expo/uiIf you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic column
ColumnExample.tsx
import { Host, Column, Text } from '@expo/ui'; export default function ColumnExample() { return ( <Host matchContents> <Column spacing={8}> <Text>First</Text> <Text>Second</Text> <Text>Third</Text> </Column> </Host> ); }
Alignment
Use alignment to position children along the cross (horizontal) axis.
ColumnAlignmentExample.tsx
import { Host, Column, Text } from '@expo/ui'; export default function ColumnAlignmentExample() { return ( <Host style={{ flex: 1 }}> <Column spacing={8} alignment="center"> <Text>Centered</Text> <Text>Centered</Text> </Column> </Host> ); }
API
import { Column } from '@expo/ui';
No API data file found, sorry!