Releases: meliorence/react-native-snap-carousel
Releases · meliorence/react-native-snap-carousel
v3.3.0
- Bring in the most wanted 'infinite loop' feature 🎉 (see the 'Loop' section for more info about the new props
loop
andloopClonesPerSide
) - Improve Android behavior when momentum is disabled
- Guard against potential errors when component is unmounted
- Add prop
lockScrollWhileSnapping
to improve behavior when momentum is disabled
v3.2.3
v3.2.2
- Fix RTL issues
- Fix issue with active item when
enableMomentum
was set totrue
- Fix issue with overlapping items (thanks @henninghall)
ParallaxImage
component: allow overriding default stylesPagination
component: adapt to RTL layouts
v3.2.1
v3.2.0
- Refactor callback handling. Make sure to use the new prop
callbackOffsetMargin
if you experience missed callbacks. - Make item's scale and opacity animations follow scroll value (thanks @hammadj)
Pagination
component: make dots tappable with new propstappableDots
andcarouselRef
(see the example)- Fix issue when carousel has been unmounted but parent container requires to re-render
- Fix state and scroll issues when the currently active item is being dynamically removed
- Improve snap feeling when momentum is disabled (default)
- Add prop
callbackOffsetMargin
- Remove props
animationFunc
,animationOptions
,scrollEndDragDebounceValue
,snapOnAndroid
, anduseNativeOnScroll
v3.1.0
v3.0.0
WARNING
- Do not use this version as some temporary code was pushed to
npm
by mistake. Make sure to use version3.1.0
instead.
Breaking changes
- Plugin is now built on top of
FlatList
, which allows for huge performance optimizations. From now on, items must be rendered using propsdata
andrenderItem
.
General
- Add
ParallaxImage
component (see the specific documentation here) - Add prop
activeSlideAlignment
- Fix issue with autoplay when setting
scrollEnabled
tofalse
- Prevent going back to the first item when overscrolling the last one
- Prevent callback from being called at the wrong time in some specific scenarios
v2.4.0
- Add
Pagination
component (see the specific documentation here) - Allow
firstItem
to be changed dynamically - Allow
0
value forcarouselHorizontalPadding
andcarouselVerticalPadding
(thanks @bonbonez) - Keep the easing of slide's opacity animation linear
- Use native driver for slide's animation (can be overridden via
animationOptions
)
v2.3.1
v2.3.0
v2.3.0
- Refactor callback handling to provide a more reliable solution when momentum is disabled
- Fix issue with parallel animations (thanks @jnbt)
- Prevent calls to
undefined
interpolators when working with dynamic slides (thanks @cskaynar) - Improve vertical mode
- Add prop
scrollEndDragDebounceValue
- Expose current scroll position with
this.currentScrollPosition
- Remove props
scrollEndDragThrottleValue
andsnapCallbackDebounceValue
(usescrollEndDragDebounceValue
instead)