meliorence / meliorence/react-native-snap-carousel
facing flickering issue when scrolling from last item to first item in android and intermittently in ios
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
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>
);
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided configuration and the _renderItem entry point, reproducing the transition between the last and first images on Android and iOS. Trace the loop, image-loading, and onLoadEnd behavior around that boundary; done means the transition no longer flickers and the affected images load reliably on both platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100