Reference version

This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

Row

A Jetpack Compose Row component for placing children horizontally.

Android
Included in Expo Go
Recommended version:
~57.0.7

Expo UI Row matches the official Jetpack Compose Row API and places children horizontally with configurable arrangement and alignment.

Three colored boxes laid out horizontally inside a Row

Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

Row places children horizontally. Use horizontalArrangement and verticalAlignment to control spacing and alignment.

RowExample.tsx
import { Host, Row, Text } from '@expo/ui/jetpack-compose'; import { fillMaxWidth, height } from '@expo/ui/jetpack-compose/modifiers'; export default function RowExample() { return ( <Host matchContents> <Row horizontalArrangement="spaceEvenly" verticalAlignment="center" modifiers={[fillMaxWidth(), height(60)]}> <Text>Item 1</Text> <Text>Item 2</Text> <Text>Item 3</Text> </Row> </Host> ); }

API

import { Row } from '@expo/ui/jetpack-compose';

Component

Row

Type: React.Element<RowProps>

RowProps

children

Optional • Type: ReactNode

horizontalAlignment

Optional • Type: HorizontalAlignment

Horizontal alignment of children.

horizontalArrangement

Optional • Type: HorizontalArrangement

Horizontal arrangement of children.

verticalAlignment

Optional • Type: VerticalAlignment

Vertical alignment of children.

verticalArrangement

Optional • Type: VerticalArrangement

Vertical arrangement of children.

Inherited Props

  • PrimitiveBaseProps