Releases: meliorence/react-native-snap-carousel
Releases · meliorence/react-native-snap-carousel
v3.7.2
- Fix
ParallaxImagenot 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
scrollEnabledtotruefrom 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
keyExtractoronScrollView(thanks @hadimhd)
v3.6.0
- Add a
layoutprop 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
scrollInterpolatorandslideInterpolatedStyle. This allows implementing custom animations and layouts (see the dedicated documentation). - Rename props
customAnimationTypeandcustomAnimationOptionstoactiveAnimationTypeandactiveAnimationOptions
v3.5.0
- Add the ability to render either a
ScrollViewcomponent or aFlatListone (default) (see propuseScrollView) - Add support for versions of React Native <
0.43(see this note) - Add support for custom animations (see props
customAnimationTypeandcustomAnimationOptions) - Add method
triggerRenderingHack()to work around a randomFlatListbug that keeps content hidden until the carousel is scrolled - Hack around
ScrollView/FlatListimage rendering issues on Android - Fix issue with tappable dots when loop is enabled
v3.4.0
- Fix
snapToItemcall that results in snapping to the wrong item whenloopis 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
removeClippedSubviewstotrueby default
v3.3.4
- Fix issue with possible faulty index when
loopClonesPerSideis 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
lockScrollWhileSnappingis enabled" since it messes with direct calls tosnapToItem()


