
Description
react-native-page-control is a page control for React Native that looks and behaves like the iOS UIPageControl, and its API matches it. A page control shows a row of dots, one per page, with the current page highlighted. You set the number of pages with numberOfPages, which is required, and the current page with currentPage. The hidesForSinglePage prop hides the control when there is only one page. Colors are set with pageIndicatorTintColor for the dots and currentPageIndicatorTintColor for the highlighted dot, and style objects can be passed for each kind of indicator through indicatorStyle and currentIndicatorStyle. The onPageIndicatorPress prop takes a function that receives the index of the dot that was pressed. The README lists every prop with its type and default value in a table, and it includes an installation command, a demo and an example. The project is on GitHub under the silentcloud account. It suits React Native developers who want the familiar iOS page dots in an app.…
Highlights
- Page dots for React Native, like UIPageControl
- Number of pages and current page props
- Hide when there is only one page
- Custom colors and indicator styles
- Tap a dot with onPageIndicatorPress
Ratings & Reviews
No ratings yet
Be the first to rate react-native-page-control.
People also visit

react-native-step-indicator
A simple react-native implementation of a step indicator widget compatible

@ptomasroos/react-native-multi-slider
Android and iOS supported pure JS slider component

react-native-app-intro-slider
Simple and configurable app introduction slider for react native
react-native-page-control FAQ
What is react-native-page-control?
A page control for React Native whose API matches the iOS UIPageControl.
Which prop is required?
numberOfPages is required. Its default is 0, and currentPage defaults to 0.
Can I hide it for a single page?
Yes. Set hidesForSinglePage to true, and the control is hidden when there is only one page.
Can I set the colors?
Yes. pageIndicatorTintColor sets the dots, and currentPageIndicatorTintColor sets the current dot.
Can the dots respond to taps?
Yes. onPageIndicatorPress receives the index of the pressed dot.
What are the best react-native-page-control alternatives?
Popular alternatives to react-native-page-control include react-native-step-indicator, @ptomasroos/react-native-multi-slider and react-native-app-intro-slider. See all react-native-page-control alternatives















