React Native & Expo (50 Qs)•Part 2: Core Architecture & Implementation (Mid-Level)
What is FlashList and how does it outperform `FlatList`?
senior LevelFormsSystem Design
In Simple Words: Developed by Shopify to fix FlatList performance issues:
- FlatList Recycling Flaw: When scrolling, FlatList unmounts off-screen native views and creates new ones, causing CPU spikes and white blank squares on fast scrolls.
- FlashList (View Recycling): Implements true Android
RecyclerView/ iOSUICollectionViewrecycling:- Never destroys views; it recycles existing views and swaps only the data payload.
- Renders up to 10x faster with zero blank spaces and maintains steady 60fps / 120fps scrolling.