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

Migrate FlatList to FlashList #28178

Closed
muttmuure opened this issue Sep 25, 2023 · 1 comment
Closed

Migrate FlatList to FlashList #28178

muttmuure opened this issue Sep 25, 2023 · 1 comment
Labels

Comments

@muttmuure
Copy link
Contributor

muttmuure commented Sep 25, 2023

Problem

While FlatList is suitable for typical use cases, our goal is to achieve the highest level of app performance, especially when dealing with extensive lists, such as Chats, Threads, Workspaces, Reports, and specific Money Threads.

Chats list items have 3 dependant onyx queries, which needs to be fetched when new items are rendered (+ will cause 3 react renders)

Solution

To address this performance challenge, we propose switching from FlatList to FlashList. By making this transition, we anticipate a significant performance improvement of approximately 2x. The best part is that this solution is cross-platform compatible and requires minimal changes, primarily by utilizing the estimatedItemSize property.

@melvin-bot melvin-bot bot added the Monthly KSv2 label Sep 29, 2023
@muttmuure
Copy link
Contributor Author

Closing in favor of #28902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant