React Native Snap Carousel Versions Save

Swiper/carousel component for React Native featuring previews, multiple layouts, parallax images, performant handling of huge numbers of items, and more. Compatible with Android & iOS.

v3.7.2

5 years ago

v3.7.1

5 years ago

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

6 years ago

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

6 years ago
  • 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

6 years ago

v3.4.0

6 years ago
  • 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

6 years ago
  • 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

6 years ago
  • Prevent issue on iOS when enableSnap is set to false while lockScrollWhileSnapping is set to true

v3.3.2

6 years ago
  • Fix issue with lockScrollWhileSnapping when no callback was provided
  • Pagination component: add props activeOpacity and dotContainerStyle

v3.3.1

6 years ago
  • Fix issue when initializing the carousel with empty data
  • Make tappable PaginationDot snaps to the right item when loop is enabled