This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Row
用于水平放置子元素的 Jetpack Compose Row 组件。
Android
Included in Expo Go
信息 如需跨平台使用,请参阅通用的
Row——它会根据平台渲染相应的原生组件。
Expo UI Row 与 Jetpack Compose 官方的 Row API 一致,可水平排列子组件,并支持配置排列方式和对齐方式。


安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
Row 可水平排列子组件。使用 horizontalArrangement 和 verticalAlignment 控制间距和对齐方式。
RowExample.tsx
API
import { Row } from '@expo/ui/jetpack-compose';
Component
Optional • Type:
ReactNodeOptional • Type:
HorizontalArrangementHorizontal arrangement of children.