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

You have a large list that is slow to update #69

Closed
Latgals opened this issue Jun 10, 2022 · 1 comment
Closed

You have a large list that is slow to update #69

Latgals opened this issue Jun 10, 2022 · 1 comment

Comments

@Latgals
Copy link

Latgals commented Jun 10, 2022

Good afternoon, colleagues.

I want to use a react-native-select-dropdown with a large list (about 2000 items). But Already got a warning:
VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.

I tried to replace the FlatList with a VirtualizedList in the SelectedDropdown.js file, but nothing happened.

How to replace FlatList with VirtualizedList and will it help? Or is it better to look for another component for large list?

@AdelRedaa97
Copy link
Owner

onScrollEndReached prop is added for pagination in v3.0.0 and also onChangeSearchInputText to make your custom search function outside the component

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

No branches or pull requests

2 participants