Skip to content

Releases: meliorence/react-native-snap-carousel

v3.7.2

26 Jul 08:30
6de6701
Compare
Choose a tag to compare

v3.7.1

11 Jun 08:28
Compare
Choose a tag to compare

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

12 Apr 16:59
Compare
Choose a tag to compare

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 to true from initially false (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 on ScrollView (thanks @hadimhd)

v3.6.0

29 Jan 12:37
Compare
Choose a tag to compare
  • Add a layout prop to let users choose between 3 different carousel layouts (see the documentation)
    react-native-snap-carousel default layout
    react-native-snap-carousel stack layout
    react-native-snap-carousel tinder layout
  • Add the ability to define dynamic styles based on scroll position with props scrollInterpolator and slideInterpolatedStyle. This allows implementing custom animations and layouts (see the dedicated documentation).
  • Rename props customAnimationType and customAnimationOptions to activeAnimationType and activeAnimationOptions

v3.5.0

03 Jan 15:07
ea3975e
Compare
Choose a tag to compare

v3.4.0

06 Nov 15:11
Compare
Choose a tag to compare
  • Fix snapToItem call that results in snapping to the wrong item when loop 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 prop inverted (use at your own risk since it will mess with the current handling of RTL layouts)
  • Set removeClippedSubviews to true by default

v3.3.4

17 Oct 07:55
Compare
Choose a tag to compare
  • Fix issue with possible faulty index when loopClonesPerSide is greater than data length
  • Guard against setNativeProps() being undefined
  • 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 to snapToItem()

v3.3.3

10 Oct 21:07
Compare
Choose a tag to compare
  • Prevent issue on iOS when enableSnap is set to false while lockScrollWhileSnapping is set to true

v3.3.2

03 Oct 17:07
Compare
Choose a tag to compare
  • Fix issue with lockScrollWhileSnapping when no callback was provided
  • Pagination component: add props activeOpacity and dotContainerStyle

v3.3.1

03 Oct 16:43
Compare
Choose a tag to compare
  • Fix issue when initializing the carousel with empty data
  • Make tappable PaginationDot snaps to the right item when loop is enabled