O'Reilly logo

React Native By Example by Richard Kho

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

Converting EditTasks to Redux

With EditTasks, we are introducing some new actions and reducers into the mix. These include:

  • Setting the currently selected task to one that was pressed on in TasksList
  • Handling a change when the Cancel or Save buttons are pressed in the EditTask screen
  • Toggling the selected task as completed
  • Changing the name of the selected task
  • Adding, modifying, and removing the due date
  • Expanding the expandable cell that shows and hides the DatePicker component

For the first two bullet points, those modifications will come in the form of three new actions placed in the TasksList container, since that's the component where these events will either happen or be defined and passed to EditTask's navigator.

Our state tree ...

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