Sign in Go Pro

Build a React Native Application

Filtering Data with a React Native Segment Component

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

Dynamic interaction is accomplished by changing the state of a component. We see and example of this by adding a filter bar to filter the tasks that are complete, vs the tasks still left todo.

We use setState to change a new piece of filter state, and then use that to dynamically update the list of items without modifying the list in any way.

Summary of Content:

  • Add a Segment from Native Base with three buttons
  • Use those buttons to update a filter key in state
  • Use that filter to dynamically change the list of items that is shown

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Build a React Native Application