April 2017
Intermediate to advanced
414 pages
8h 14m
English
As we aren't using a navigation bar with the Android version of the app, we should create a Save button that handles the same save logic.
First, we should modify index.android.js to pass a saveCurrentEditedTask prop to EditTask from the TasksList component:
// index.android.js... class Tasks extends Component { ... _renderScene (route, navigator) { ... if (route.index === 1) { return ( <EditTask ... saveCurrentEditedTask={ route.passProps .saveCurrentEditedTask } ... /> ) } } }
Then, modify TasksList to pass the _saveCurrentEditedTask method to EditTask in _renderAndroidEditTaskComponent:
// Tasks/app/components/TasksList/index.js ... export default class TasksList extends Component { ... _renderAndroidEditTaskComponent ...Read now
Unlock full access