This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 54).
FlowRow
A Jetpack Compose FlowRow component for wrapping children horizontally.
Android
Expo UI FlowRow matches the official Jetpack Compose FlowRow API and arranges children in a horizontal flow that wraps to the next line when it runs out of space.
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
FlowRow arranges children in a horizontal flow that wraps to the next line when it runs out of space.
FlowRowExample.tsx
import { Host, FlowRow, Text } from '@expo/ui/jetpack-compose'; import { paddingAll } from '@expo/ui/jetpack-compose/modifiers'; export default function FlowRowExample() { const tags = ['React Native', 'Expo', 'Android', 'Jetpack Compose', 'Material 3', 'Kotlin']; return ( <Host matchContents> <FlowRow horizontalArrangement={{ spacedBy: 8 }} verticalArrangement={{ spacedBy: 8 }} modifiers={[paddingAll(16)]}> {tags.map(tag => ( <Text key={tag}>{tag}</Text> ))} </FlowRow> </Host> ); }
API
import { FlowRow } from '@expo/ui/jetpack-compose';
Component
Type: React.Element<FlowRowProps>
Optional • Type:
HorizontalArrangementHorizontal arrangement of children.