Flatlist
The FlatList Component is an inbuilt react-native component that displays similarly structured data in a scrollable list. It shows only those elements that are currently being displayed on the screen.
When we use ScrollView over FlatList or vice-versa ?
In the landscape of mobile app development, the task of displaying lists of data is commonplace. Developers often find themselves contemplating whether to employ a ScrollView or a FlatList component for this purpose. Both ScrollView and FlatList are pivotal components in widely used frameworks like React Native, each presenting its unique benefits and applicability.
Table of Content
- ScrollView
- When to use ScrollView?
- Flatlist
- When to use FlatList?
- Difference between ScrollView and Flatlist