mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c231d5e371
Summary: Problem: All CellRenderers rerender every time the containing VirtualizedList is rerendered. This is due to the following: - Lambda is created for each CellRenderer's onLayout prop on every VirtualizedList render (fixed in D35061321 (https://github.com/facebook/react-native/commit/19cf70266eb8ca151aa0cc46ac4c09cb987b2ceb)) - CellRenderer's parentProps prop changes on every VirtualizedList render (fixed in D35062323 (https://github.com/facebook/react-native/commit/adb2962fee968d7ae20ec32a55dc69e4ebb3ce12)) - FlatList recreates renderItem/ListItemComponent in FlatList._renderer (addressed in this diff) Changelog: [Internal] - VirtualizedList optimization - memoize FlatList._renderer Reviewed By: ryancat Differential Revision: D35067472 fbshipit-source-id: 124629d94821f35b8943730839fbe72f547e80fd