React Native & Expo (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
FlatList vs FlashList (Shopify): Recycling strategies and fixing list scroll stuttering.
senior LevelCLI
In Simple Words:
FlatList: Unmounts components offscreen, creating and destroying hundreds of native view elements during fast scrolling, leading to blank white spaces and memory spikes.FlashList(Shopify): Implements View Recycling:- Keeps a small pool of native views alive.
- As rows scroll offscreen, their views are instantly recycled and re-bound with new row data without destroying or allocating new native memory.
- Delivers consistent 60 FPS scrolling even across lists of 100,000+ complex items.