Summary
In this chapter, you learned about the ListView
component in React Native. This component is general-purpose in that it doesn't impose any specific look for items that get rendered. Instead, the appearance of the list is up to you, while the ListView
component helps with efficiently rendering a data source. The ListView
component also provides a scrollable region for the items it renders.
You implemented an example that took advantage of section headers in list views. This is a good place to render static content such as list controls. You then learned about making network calls in React Native; it's just like using fetch()
in any other web application. Finally, you implemented lazy lists that scroll infinitely, by only loading new items after they've scrolled to the bottom of what's already been rendered.
In the next chapter, you'll learn how to show the progress of things such as network calls.