There is a heavy json file that is loaded in FlatList.
And from time to time, the following message appears:
VirtualizedList: you need to make it your own renderItem and it should be like that, shouldComponentUpdate, etc.Object {
 "contentLength": 5758.33349609375,
 "dt": 826,
 "prevDt": 729,
}


I tried to google, but did not find what exactly needs to be done.
  • it's just a warning that your list is being rendered for a long time and it is suggested to look for an opportunity to optimize it, for example, rewrite the renderItem with PureComponent or set it shouldComponentUpdate – Primal Bingo May 19 '19 at 11:57
  • Primal Bingo, thank you.I just can’t find a single example of how to do it.Or maybe I don’t understand something. – Chinese Paintball May 19 '19 at 12:21

1 Answers 1

it's just a warning that your list is being rendered for a long time and it is suggested to look for an opportunity to optimize it, for example, rewrite the renderItem with PureComponent or set it shouldComponentUpdate