react-native-draggable-flatlist
react-native-draggable-flatlist copied to clipboard
Performance Issue on long lists
Hi, I'm facing a huge performance issue with my list. Currently, I'm rendering around 100 fields and the ui just freezes on drag.
what version of reanimated are you on?
what version of reanimated are you on?
im using with expo "react-native-reanimated": "~2.12.0",
I have the same issue.
I think an issue here is that the FlatList does not render all 100 items on initial load, so if your rendered component inside of the list is heavy or takes time to load like a WebView, it will freeze until the next part of the list is loaded. I tried to solve it with setting initialNumToRender to the list length, but that makes the UI freeze longer while building the list initially but solves the freeze on drag issue.
I feel like this issue could be solved with a FlashList integration because of the way FlashList reuses list items on scroll.
Thoughts @computerjazz ?
I'm facing performance issues as well. Are you guys seeing all of the rows being rendered instead and not respecting the initialNumToRender property? I'm adding logs in the rendered item component and am seeing all of the items (even off screen items) being logged.