Chapter 16

  1. What type of data can the FlatList component render?
    1. The FlatList expects an array of objects. The renderItem property takes a function that is responsible for rendering each item.
  2. Why is the key property a requirement for each data item that's passed to FlatList?
    1. So that the list can do efficient equality checks that help with the rendering performance during list data updates.
  3. How do you render list controls that stay in a fixed position during scrolling?
    1. You can use the ListHeaderComponent property of FlatList.
  4. How to you lazily load more data as the user scrolls through your list?
    1. 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 ...
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.34.0