- What type of data can the FlatList component render?
- The FlatList expects an array of objects. The renderItem property takes a function that is responsible for rendering each item.
- Why is the key property a requirement for each data item that's passed to FlatList?
- So that the list can do efficient equality checks that help with the rendering performance during list data updates.
- How do you render list controls that stay in a fixed position during scrolling?
- You can use the ListHeaderComponent property of FlatList.
- How to you lazily load more data as the user scrolls through your list?
- You can provide a function to the onEndReached property of FlatList. This is called when the user nears the end of the list and the function can populate the list data with more data.