Carousel
Carousel for scrolling pages horizontally
PROPS
name | description | type | default |
---|---|---|---|
initialPage | this first page to start with | number | 0 |
pageWidth | the page width (all pages should have the same page) | number | Constants.screenWidth |
loop | if true, will have infinite scroll | bool | |
onChangePage | callback for when page has changed | func | |
onScroll | callback for onScroll event of the internall ScrollView | func | |
containerStyle | the carousel style | union |
LIVE EXAMPLE
CODE SAMPLE
See example here.