This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
ScrollView
一个支持垂直或水平滚动的可滚动容器。
Android
iOS
Web
Included in Expo Go
Recommended version:
~58.0.15
一个可滚动的容器,默认垂直滚动。水平列表请使用 direction="horizontal"。
🌐 A scrollable container, defaulting to vertical scrolling. Use direction="horizontal" for horizontal lists.
本地实现
🌐 Native implementations


安装
🌐 Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
用法
🌐 Usage
垂直滚动
🌐 Vertical scrolling
VerticalScrollViewExample.tsx
水平滚动
🌐 Horizontal scrolling
HorizontalScrollViewExample.tsx
应用接口
🌐 API
import { ScrollView } from '@expo/ui';
No API data file found, sorry!