O'Reilly logo

React Native - Building Mobile Apps with JavaScript by Vladimir Novick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ListView

ListView is used to display a scrolling list of data. Usually, this data is subjected to change, but the important thing is that it should be similarly structured. ListView is optimized specifically for scrolling lists of changing data. It will calculate and render to the screen only elements, that can fit into view. If you have a long list of data, components beyond the screen will be rendered lazily when you scroll down.

Let's change our component to render a list of props of ListView when clicking on the Show ListView Props button. The resulting app should look like this:

We will simulate a network request with setTimeout in this ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required