PageControl
Page indicator, typically used in paged scroll-views
PROPS
name | description | type | default |
---|---|---|---|
containerStyle | Additional styles for the top container | union | |
numOfPages | Total number of pages | number | |
currentPage | Zero-based index of the current page | number | |
onPagePress | Action handler for clicking on a page indicator | func | |
color | Color of the selected page dot and, if inactiveColor not passed, the border of the not selected pages | string | |
inactiveColor | Color of the unselected page dots and the border of the not selected pages | string | |
size | The size of the page indicator | number | 10 |
enlargeActive | Whether to enlarge the active page indicator | bool | false |
spacing | The space between the siblings page indicators | number | 4 |
EXAMPLE
CODE SAMPLE
See example here.