react-native-snap-carousel
react-native-snap-carousel copied to clipboard
Fix triggering onSnapToItem on react-native-web
Platforms affected
Web
What does this PR do?
As mentioned in this issue expected behavior is triggering onSnaptoItem on web but currently it doesn't work correctly.
This PR fixes triggering onSnapToItem callback on react-native-web.
Fix doesn't affect other platforms.
What testing has been done on this change?
Tested on android, ios, web
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/FlatListcarousels (propuseScrollView) - [x] Callback methods
- [x]
ParallaxImagecomponent - [x]
Paginationcomponent - [x] Layouts and custom interpolations
Hello @oleksiisinkov. Could you explain me how to run this package in web?
It does not render anything on my end, and I see the following error on the terminal:
It works fine on expo, Thanks!