react-native-snap-carousel
react-native-snap-carousel copied to clipboard
fix the onSnapToItem method can not called when the item num of ths F…
…astlist is too much
Platforms affected
Carousel.js
What does this PR do?
When the item is too much(325 of my), I called snapToItem but the onSnapToItem method was not called until several times.
What testing has been done on this change?
Tested features checklist
- [ ] Default setup (example)
- [ ] Carousels with and without momentum enabled (prop
enableMomentum
) - [ ] Vertical carousels (prop
vertical
) - [ ] Slide alignment (prop
activeSlideAlignment
) - [ ] Autoplay (prop
autoplay
) - [ ] Loop mode (prop
loop
) - [ ]
ScrollView
/FlatList
carousels (propuseScrollView
) - [ ] Callback methods
- [ ]
ParallaxImage
component - [ ]
Pagination
component - [ ] Layouts and custom interpolations