Releases: meliorence/react-native-snap-carousel
Releases · meliorence/react-native-snap-carousel
v3.7.2
- Fix
ParallaxImage
not being rendered (thanks @louiszawadzki)
v3.7.1
Bugfixes
- Fix a potential crash in release mode (thanks @hanpanpan200)
- Do not round scroll offset's number in order to prevent potential issues with scroll repositioning
v3.7.0
New features and enhancements
- Add a new callback method:
onBeforeSnapToItem()
- Add prop
lockScrollTimeoutDuration
- Add the ability to enable/disable callback's execution when snaping programmatically
- Add the ability to change
scrollEnabled
totrue
from initiallyfalse
(thanks @tomauty)
Bugfixes
- Fix random errors when accessing wrapped component's reference
- Fix errors triggered when calling
setState()
while the component has already been unmounted
Other
- Support
keyExtractor
onScrollView
(thanks @hadimhd)
v3.6.0
- Add a
layout
prop to let users choose between 3 different carousel layouts (see the documentation)
- Add the ability to define dynamic styles based on scroll position with props
scrollInterpolator
andslideInterpolatedStyle
. This allows implementing custom animations and layouts (see the dedicated documentation). - Rename props
customAnimationType
andcustomAnimationOptions
toactiveAnimationType
andactiveAnimationOptions
v3.5.0
- Add the ability to render either a
ScrollView
component or aFlatList
one (default) (see propuseScrollView
) - Add support for versions of React Native <
0.43
(see this note) - Add support for custom animations (see props
customAnimationType
andcustomAnimationOptions
) - Add method
triggerRenderingHack()
to work around a randomFlatList
bug that keeps content hidden until the carousel is scrolled - Hack around
ScrollView
/FlatList
image rendering issues on Android - Fix issue with tappable dots when loop is enabled
v3.4.0
- Fix
snapToItem
call that results in snapping to the wrong item whenloop
is enabled - Fix issue that, in some use cases, prevents every items but the initial ones to be rendered
- On Android, prevent loop and callback issues because scroll offset's value doesn't return an integer
- Add prop
inactiveSlideShift
(see #204) - Expose
FlatList
's propinverted
(use at your own risk since it will mess with the current handling of RTL layouts) - Set
removeClippedSubviews
totrue
by default
v3.3.4
- Fix issue with possible faulty index when
loopClonesPerSide
is greater than data length - Guard against
setNativeProps()
beingundefined
- On Android, make sure that the first item has the proper active style after init
- On iOS, remove the feature "snap as soon as the previous/next item becomes active when
lockScrollWhileSnapping
is enabled" since it messes with direct calls tosnapToItem()