Releases: meliorence/react-native-snap-carousel
Releases · meliorence/react-native-snap-carousel
v2.2.2
- Fix issue that prevented inactive styles of first and last items to be applied when using
snapToPrev
and snapToNext
methods
v2.2.1
- Do not mark
sliderWidth
and sliderHeight
as required
- Add warnings when properties specific to carousel's orientation haven't been set
v2.2.0
- Implement vertical mode (prop
vertical
)
- Make sure that current active item is properly updated when snapping
- Prevent issues when 'sliderWidth' is smaller than viewport's width
- Recalculate card positions on layout to handle rotation (thanks @andrewpope); make sure to read this note
- Refresh card positions if slider and/or item's dimensions are updated (thanks @hoangnm)
- Add props
scrollEndDragThrottleValue
and snapCallbackDebounceValue
- Expose
View
's onLayout
prop
- Deprecate prop
onScrollViewScroll
v2.1.4
- Add prop
onScrollViewScroll
v2.1.3
- Default value for
showsHorizontalScrollIndicator
is now false
- Expose
ScrollView
's onSscroll
prop (thanks @radko93)
v2.1.2
- Do not trigger
onSnapToItem
when snapping back to the same slide (thanks @rgabs)
- Add prop
carouselHorizontalPadding
to override container's inner padding (thanks @skeie)
v2.1.1
- Ensure compatibility with RN 0.43 (previous version of plugin's dependency
react-addons-shallow-compare
was breaking with React 16)
- Fix issue with padding on iOS that could cause the carousel to snap back when its last item was clicked
v2.1.0
- Add RTL support
- Keep current active item when adding slides dynamically
- Prevent invalid
firstItem
number
- Add prop
activeSlideOffset
v2.0.3
- Prevent error when carousel has only one child (thanks @kevinvandijk !)
- Fix issue when appending dynamic slides (the first one was ignored)
- Fix edge case that prevented the first slide from being focused when swiping back with momentum enabled
- Bump example's RN version to 0.42.3
v2.0.1
- Fix un-handled exception with interpolators (thanks @chitezh !)