suwu150 / react-native-tree-select

react-native-tree-select组件树形结构选择
https://www.npmjs.com/package/react-native-tree-select
MIT License
67 stars 28 forks source link

A little suggestion #27

Open codthing opened 3 years ago

codthing commented 3 years ago
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. {"contentLength": 4587, "dt": 1267, "prevDt": 2956}

The above is the warning when rendering 1117 rows and 41.8KB of data, so can use useMemo to optimize the rendering? Otherwise, the low-configuration device will take up more CPU resources, resulting in performance degradation or even inoperability.

suwu150 commented 3 years ago

thanks.