meliorence / meliorence/react-native-snap-carousel
making an "infinite scroll" carousel - question
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Is this a bug report, a feature request, or a question?
Question
I was planning on using the onSnapToItem to detect when I'm either at the end of the carrousel, or at index 0 while going back. I need to do this in order to fetch more images from the server. I basically want to make an "infinite scroll" type carrousel where more images are fetched when you're either at the end or at the beginning (when going back) of the carrousel.
- What would be the recommended way of showing that a fetch is happening? Is there someplace I can put an ActivityIndicator?
- Is there a better way to do this than using onSnapToItem?
Thanks
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 by reading the carousel's onSnapToItem callback and the ActivityIndicator usage relevant to React Native. Determine whether the component exposes a loading presentation hook and whether another callback supports fetching at either boundary; done means the issue's two questions have a documented, actionable answer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100