1.

What is FlatList and how is it better than ScrollView?

Answer»

React native provides FlatList component to display a long line of data. For example, the News app normally displays a list to ARTICLE summary card on the home page. these list of the card should be IMPLEMENTED using FlatList component. FlatList works well for long lists of data, where the NUMBER of items might change over time. Unlike the more generic ScrollView, the FlatList only renders elements that are currently visible on the screen, not all the elements at once. FlatList provides a PERFORMANCE boost over ScrollView as FlatList creates a card at runtime when the user starts scrolling the page. But ScrollView creates all the list item (card) at once.



Discussion

No Comment Found