meliorence / meliorence/react-native-snap-carousel

renderItem is called for entire list in data

Open
#697 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
10.5k
Forks
2.3k
PR merge metrics
No merged PRs in 30d

Description

Question

Maybe I"m not understanding the documentation. I thought that renderItem would only get called sparingly, but it seems it's getting called for every item in my list which is killing my performance. Is there some way to minimize the render to a local area around the active index?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the renderItem documentation and a minimal reproduction using a large list; the issue names no file or test to run. Done would mean establishing whether rendering every item is expected and identifying a supported way to limit rendering around the active index.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.