This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
react-native-pager-view
一个提供类似轮播视图的组件库,可通过滑动浏览内容页面。
Android
iOS
Included in Expo Go
重要
@expo/ui提供了一个可直接替换的实现,用于替代react-native-pager-view,在 Android 上由 Jetpack Compose 提供支持,在 iOS 上由 SwiftUI 提供支持
react-native-pager-view 提供了一个组件,用于实现滚动浏览内容页面时所需的布局和手势,例如轮播图
安装
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.
示例
App.js
了解更多
访问官方文档
获取有关 API 及其用法的完整信息