Build: Optimized FlatList Screen
This screen shows a list of 1000 items using FlatList with performance optimizations to ensure smooth scrolling and low memory use.
Target UI
------------------------- | Optimized FlatList | |-----------------------| | Item 1 | | Item 2 | | Item 3 | | ... | | Item 1000 | -------------------------
Use FlatList to render 1000 items labeled 'Item 1' to 'Item 1000'.
Implement keyExtractor for stable keys.
Use getItemLayout to optimize scroll performance.
Use initialNumToRender to limit initial render to 20 items.
Use maxToRenderPerBatch to 20 for batch rendering.
Use windowSize to 10 to control offscreen rendering.
Use React.memo or equivalent to avoid unnecessary re-renders of list items.