Test your knowledege

  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. The FlatList expects an object.
    3. It expects a function that returns an iterable.
  2. Why is the key property a requirement for each data item that's passed to FlatList?
    1. It isn't a requirement.
    2. So that the list knows how to sort the data values.
    3. 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. By passing custom control components as children of FlatList
    2. You can use the ListHeaderComponent property of FlatList.
    3. You can't have statically positioned list controls.
  1. 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 can populate the list data with more data.
    2. You have to extend the FlatList class and respond to scroll events to figure out whether the end of the list has been reached yet.
..................Content has been hidden....................

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