O'Reilly logo

React and React Native by Adam Boduch

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

Sorting and filtering lists

Now that you have the basics of ListView components, and passing them DataSource instances, let's add some controls to the list you just implemented. The ListView component itself helps you render fixed-position content for list controls. You'll also see how to manipulate the data source itself, which ultimately drives what's rendered on the screen.

Before we jump into implementing list control components, it might be helpful if we go over the high-level structure of these components so that the code has more context. Here's an illustration of the component structure that we're going to implement:

Sorting and filtering lists

Here's what each of ...

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