Next, let's make changes to TasksList so that it supports EditTask. It should do the following:
- Import the EditTaskContainer for us to push to the navigator.
- Add the Platform API to support Android devices.
- Modify the onLongPress callback for TasksListCell to call a function that first adds the currently selected task to the Redux state and then navigate the user to the EditTaskContainer. It should contain a Cancel and Save button.
- The Cancel button should fire a function that pops the navigator and resets the selectedTaskObject value in your Redux state.
- The Save button should fire a function that pops the navigator and saves the selectedTaskObject into the listOfTasks array in your Redux state.
Here ...