react-native-snap-carousel icon indicating copy to clipboard operation
react-native-snap-carousel copied to clipboard

facing flickering issue when scrolling from last item to first item in android and intermittently in ios

Open christopher-18 opened this issue 4 years ago • 9 comments

when i am scrolling from my last image to first image or vice-versa , there is some flickering if the image in android. But in iOS it is happening intermittently. Also, those images are not getting loaded.

<Carousel
                       data={topCarouselImages}
                       renderItem={this._renderItem}
                       sliderWidth={screenWidth}
                       itemWidth={screenWidth}
                       loop={true}
                       loopClonesPerSide={5}
                       onSnapToItem={(index) => this.setState({ activeSlide: index })}
                   />
    _renderItem({ item, index }) {
        l        return (
            <View style={{ height: "100%", width: screenWidth }}>
                <Image
                    source={{ uri: item, cache: 'reload' }}
                    onLoadEnd={() => this.hideIndicatorAfterCarouselLoad(index)}
                    style={{ width: "100%", height: "100%", resizeMode: "stretch" }} />
            </View>
        );
    }

christopher-18 avatar Jun 16 '20 13:06 christopher-18

Any Fix found?

Rojal17 avatar Dec 14 '20 16:12 Rojal17

Some fix?

Dimasprog avatar Dec 30 '20 12:12 Dimasprog

any solution?

15110011 avatar Mar 23 '21 11:03 15110011

@15110011

Remove loop prop and try.

That fixed the issue for me.

bear1030 avatar May 14 '21 06:05 bear1030

@15110011

Remove loop prop and try.

That fixed the issue for me.

to me it didnt work. thanks btw

15110011 avatar Jul 26 '21 10:07 15110011

Removing loop property worked. But I want the loop behaviour.

Anyone found a hack (or) a workaround to fix this issue.? I'm using v3.9.0 btw.

Vidhiyakar avatar Jul 28 '21 05:07 Vidhiyakar

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

dohooo avatar Oct 08 '21 04:10 dohooo

the same issue appears on 4.0.0-beta.6

ggepenyan avatar Apr 02 '22 21:04 ggepenyan

seems like the package is not being maintained anymore.

ggepenyan avatar Apr 02 '22 21:04 ggepenyan