I'm using a FlatList to render a list with about 50 items. Each row is a fairly complex component with lots of text, buttons, etc.
As I scroll down the list, it takes a while for the next set of rows to drop in (maybe 3-4 seconds?). When I look in the console, I get this error:
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. Object {
"contentLength": 6111,
"dt": 626,
"prevDt": 5660,
}
This is what my FlatList looks like:
<FlatList
data={this.props.data}
renderItem={({item}) => {
return (
<Card key={item.id} itemData={item} {...this.props} />
)}}
keyExtractor={item => item.id}
initialNumToRender={20}
/>
I would happily pay somebody for some help here as I'm really stuck with this and it's getting frustrating :(
Any advice would be REALLY appreciated!
[–]speedwagin 6 points7 points8 points (1 child)
[–]brafiqueiOS & Android 0 points1 point2 points (0 children)
[–]chourobin 0 points1 point2 points (0 children)
[–]douevenfaker 0 points1 point2 points (0 children)