What is the difference between FlatList and ScrollView?
FlatList | ScrollView |
---|---|
It renders all the child components at once without impacting the performance. | It renders all the child components at once. However, it decreases the performance. |
It provides header and footer support. | It does not provide any support for the header and footer. |
It provides multiple column support, infinite scroll loading, and nth number of features. | It provides limited features. |
It gives horizontal mode as an optional feature. | It only allows vertical mode. |
It allows configuring viewability callbacks. | You can’t configure callbacks in ScrollView. |
BY Best Interview Question ON 13 Jul 2021