Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add column's windowSize #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Boooober
Copy link

This PR adds the windowSize prop to improve the performance of nested FlatList components. This prop allows developers to control how many items are rendered around the current scroll position, helping optimize memory usage and performance for large lists.

The windowSize defaults to 21 as per React Native’s default behavior, but it can now be customized by the user based on the size of their list and performance needs. This prop significantly improves scrolling performance, particularly in long or image-heavy masonry layouts by reducing the number of items in memory.

@Boooober Boooober changed the title Add column window size Add column windowSize Sep 20, 2024
@Boooober Boooober changed the title Add column windowSize Add column's windowSize Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant