Overview - FlatList basics (data, renderItem, keyExtractor)
What is it?
FlatList is a React Native component used to efficiently display long lists of data. It takes an array of items and renders them using a function you provide. It also needs a unique key for each item to keep track of them during updates.
Why it matters
Without FlatList, rendering large lists would be slow and use too much memory, causing apps to lag or crash. FlatList solves this by only rendering items visible on the screen, making apps smooth and responsive even with thousands of items.
Where it fits
Before learning FlatList, you should understand basic React Native components and how to use state and props. After mastering FlatList, you can learn about advanced list features like infinite scrolling, pull-to-refresh, and custom item layouts.