PagerView lets users swipe through full-screen pages in React Native. Android uses Jetpack Compose; iOS uses SwiftUI TabView, with New Architecture support on recent React Native releases.
Overview
Each direct child of PagerView becomes one page stretched to the pager bounds. You control the active page with an ref and methods such as setPage, setPageWithoutAnimation, and setScrollEnabled, and listen to scroll and selection events.
Props cover horizontal or vertical orientation, RTL layout direction, page margins, keyboard dismiss on drag, lazy mounting with placeholders, and platform-specific overscroll or offscreen limits. TypeScript types ship for refs, events, and scroll state payloads.
A usePagerView hook bundles common state and AnimatedPagerView wiring, and Reanimated can handle onPageScroll on the UI thread. Documentation covers nested pagers, carousels, tab views, and iOS keyboard focus quirks when switching pages.
The library autolinks on install; iOS projects run pod install. Version 10 requires the New Architecture and supports the three latest documented React Native minor releases.
Key features
- Native Compose and SwiftUI pagers
- Horizontal and vertical swiping
- Programmatic page navigation APIs
- Lazy page mounting with placeholders
- Scroll and selection event callbacks
- usePagerView state helper hook
- Reanimated onPageScroll support
- RTL and page margin options
Use cases
- Onboarding swipe flows
- Tab-style multi-page layouts
- Image or content carousels
- Nested pagers in complex screens
- Controlled wizards with setPage