Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.
ParallaxImage
not being rendered (thanks @louiszawadzki)onBeforeSnapToItem()
lockScrollTimeoutDuration
scrollEnabled
to true
from initially false
(thanks @tomauty)setState()
while the component has already been unmountedkeyExtractor
on ScrollView
(thanks @hadimhd)layout
prop to let users choose between 3 different carousel layouts (see the documentation)
scrollInterpolator
and slideInterpolatedStyle
. This allows implementing custom animations and layouts (see the dedicated documentation).customAnimationType
and customAnimationOptions
to activeAnimationType
and activeAnimationOptions
ScrollView
component or a FlatList
one (default) (see prop useScrollView
)0.43
(see this note)customAnimationType
and customAnimationOptions
)triggerRenderingHack()
to work around a random FlatList
bug that keeps content hidden until the carousel is scrolledScrollView
/FlatList
image rendering issues on AndroidsnapToItem
call that results in snapping to the wrong item when loop
is enabledinactiveSlideShift
(see #204)FlatList
's prop inverted
(use at your own risk since it will mess with the current handling of RTL layouts)removeClippedSubviews
to true
by defaultloopClonesPerSide
is greater than data lengthsetNativeProps()
being undefined
lockScrollWhileSnapping
is enabled" since it messes with direct calls to snapToItem()
enableSnap
is set to false
while lockScrollWhileSnapping
is set to true
lockScrollWhileSnapping
when no callback was providedPagination
component: add props activeOpacity
and dotContainerStyle
PaginationDot
snaps to the right item when loop is enabled