ScrollView
The ScrollView Component is an inbuilt react-native component that serves as a generic scrollable container, with the ability to scroll child components and views inside it.
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