react-native-snap-carousel
react-native-snap-carousel copied to clipboard
fix: Compatible with props pagingEnabled.
Overview
When the user quickly swipes the screen left and right, I need to keep the function of pagingEnabled, slide to jump one screen at a time instead of multiple, as in this Tiktok Example for Expo, I use 4.0.0-beta.6, currently I am testing modify pagingEnabled compatibility judgment, it works well, and it can work normally in ScrollView and Flatlist.
Platforms affected
iOS && Android
What does this PR do?
Compatible with pagingEnabled property
What testing has been done on this change?
iOS && Android Devices Tested
Tested features checklist
- [x] Default setup (example)
- [x] Carousels with and without momentum enabled (prop
enableMomentum
) - [x] Vertical carousels (prop
vertical
) - [x] Slide alignment (prop
activeSlideAlignment
) - [x] Autoplay (prop
autoplay
) - [x] Loop mode (prop
loop
) - [x]
ScrollView
/FlatList
carousels (propuseScrollView
) - [x] Callback methods [
4.0.0.beta.x onBeforeSnapToItem => onScrollIndexChanged
] - [x]
ParallaxImage
component - [x]
Pagination
component - [x] Layouts and custom interpolations
Tested