Pages side by side that a swipe turns one at a time, under a segmented control or a page control.
import { Pager } from "@plexui/react-native"
| iOS 26 | Android |
|---|
| Native component | Page view controller (a paging scroll view) | Horizontal pager |
| Look | Pages a swipe turns, under a segmented control | Pages a swipe turns, under the tabs, the indicator following the swipe |
| Prop | Type | Default | Description |
|---|
page | number | — | The page shown, by its index in the children's order (controlled) |
onPageChange | (page: number) => void | — | Called with the page a swipe comes to rest on |
onPageScroll | (position: number) => void | — | Called on every frame of a swipe or a move with a fractional page, for SegmentedControl's position or PageControl's |
scrollEnabled | boolean | true | Whether a swipe turns the pages; off, only page does |
gap | number | 0 | Room between two pages in points, seen only while they move; at rest a page fills the pager |
children | ReactNode | — | The pages, one child each, each as wide as the pager |
testID | string | — | Test id |
style | StyleProp<ViewStyle> | — | Style of the pager |