O'Reilly logo

React Native Cookbook by Crysfel Villa, Stan Bershadskiy

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

Getting the most out of ListView

React Native provides us a pretty performant list component out of the box. It is extremely flexible, supports rendering almost any component you can imagine inside of it, and renders them rather quickly. If you'd like to read some more examples of how to work with ListView, there are a couple of recipes in Chapter 1, Getting Started and Chapter 3, Animating the User Interface that use it. The React Native ListView is built on top of ScrollView in order to achieve the flexibility of rendering variable-height rows with any view component.

The major performance and resource drawback of the ListView component occurs when you have an extremely large list that you scroll through. Currently, as you scroll the list, the ...

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