This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Box
用于堆叠子元素的 Jetpack Compose Box 组件。
Android
Included in Expo Go
Expo UI Box 与官方 Jetpack Compose Box API 相匹配,可将子元素层叠在一起,并配置内容对齐方式。


安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
Box 会将子元素层叠在一起。使用 contentAlignment 在 Box 内定位这些子元素。
BoxExample.tsx
API
import { Box } from '@expo/ui/jetpack-compose';
Component
Optional • Type:
ReactNodeOptional • Type:
FloatingToolbarExitAlwaysScrollBehaviorScroll behavior for the floating toolbar exit.