PagerView swipes through pages using Jetpack Compose on Android and SwiftUI TabView on iOS, with lazy loading and programmatic page control.
Overview
React Native Pager View is a native pager component for horizontal or vertical page swiping in React Native apps. On Android it uses Jetpack Compose pagers; on iOS it uses a SwiftUI paged TabView, so scrolling behavior matches each platform.
Each child of PagerView becomes one full-size page with a stable key. Props cover initial page, scroll enablement, orientation, RTL layout direction, margins, keyboard dismiss on drag, and lazy mounting with preload distance. Events report scroll position, selected page, and scroll state; refs expose setPage, setPageWithoutAnimation, and setScrollEnabled.
The package powers React Native Tab View and Material Top Tabs in the navigation ecosystem and supports only the React Native New Architecture in current releases. Helpers include usePagerView for common state wiring and patterns for Reanimated onPageScroll handlers. Documentation describes iOS keyboard focus quirks when paging between text fields.
Key features
- Jetpack Compose pager on Android
- SwiftUI TabView pager on iOS
- Horizontal and vertical orientation
- Lazy page mounting
- Programmatic setPage APIs
- RTL layout direction support
- usePagerView helper hook
- Reanimated scroll event integration
Use cases
- Tabbed or onboarding flows
- Image or content carousels
- Nested pagers and dot indicators
- Material top tabs backends