react-native-snap-carousel
react-native-snap-carousel copied to clipboard
Android - flickering last to first item (onSnapToItem setState)
Hi, I notice that the carrousel is flickering in Android(last image to first one) when in onSnapToItem function the state has changed.
Like: onSnapToItem={(index) => {
this.setState({activeDotIndex: index});
}}
Similar issue like this pull request should be fix : https://github.com/meliorence/react-native-snap-carousel/pull/368
Please take a look.
Thanks
i think we encounter the same problem,the last imag in Carousel is flickering when running android
Facing the same issue. I have 3 data and it's flickering the first image of every 3rd loop. For some devices, it's happening for every loop.
+1
Any solution?
@karanbhatia507 add props : itemWidth
i have the same issue when swiping from last to first item and vice versa. I saw onSnapToItem() call 2 times when i did that. Any solution? "react-native-snap-carousel": "^3.9.1", "react-native": "0.60.6"
Hi, I'm facing the same issue. Any workaround?
Facing the same issue, warding here.
removeClippedSubviews={false}可以解决这个问题,通过这个swiper库leecade/react-native-swiper#1232
的问题产生的灵感来源,Carousel有同样的属性,试验过可以解决
any update?
@15110011 add props : itemWidth
@15110011 add props : itemWidth
i did but its still flickering
Sorry, please allow me to advertise for my open source library! ~ I think this library react-native-reanimated-carousel will solve your problem. It is a high performance and very simple component, complete with React-Native reanimated 2
removeClippedSubviews={false}可以解决这个问题,通过这个swiper库leecade/react-native-swiper#1232
的问题产生的灵感来源,Carousel有同样的属性,试验过可以解决
works for me
removeClippedSubviews={false}可以解决这个问题,通过这个swiper库leecade/react-native-swiper#1232
的问题产生的灵感来源,Carousel有同样的属性,试验过可以解决
Works for me too! Thanks!
- "react-native-snap-carousel": "^3.9.1",
- "react-native": "0.64.2",
add this line will fix the issue
removeClippedSubviews={false}