Carousel

Carousel for scrolling pages horizontally

PROPS

namedescriptiontypedefault
initialPagethis first page to start withnumber0
pageWidththe page width (all pages should have the same page)numberConstants.screenWidth
loopif true, will have infinite scrollbool
onChangePagecallback for when page has changedfunc
onScrollcallback for onScroll event of the internall ScrollViewfunc
containerStylethe carousel styleunion

LIVE EXAMPLE

CODE SAMPLE

See example here.