File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -555,19 +555,15 @@ const ListTodosComponentWithNavigation = withNavigation(ListTodosComponent)
555
555
556
556
```
557
557
558
- ##### Change 1 : ListTodosComponent - Use this.props.navigate
558
+ ##### Change 2 : ListTodosComponent - Use this.props.navigate
559
559
560
560
```
561
561
updateTodoClicked(id) {
562
562
this.props.navigate(`/todos/${id}`)//REACT-6
563
563
//this.props.history.push(`/todos/${id}`)
564
564
```
565
565
566
- ## Display Todo Details in TodoComponent
567
-
568
- #### Change Overview
569
-
570
- ##### Change 1: TodoComponent - Enable Params and Navigation
566
+ ##### Change 3: TodoComponent - Enable Params and Navigation
571
567
572
568
```
573
569
class TodoApp extends Component {
@@ -584,7 +580,7 @@ const TodoComponentWithParamsAndNavigation = withParams(withNavigation(TodoCompo
584
580
585
581
```
586
582
587
- ##### Change 2 : TodoComponent constructor - Use this.props.params
583
+ ##### Change 4 : TodoComponent constructor - Use this.props.params
588
584
589
585
```
590
586
class TodoComponent extends Component {
@@ -596,7 +592,7 @@ class TodoComponent extends Component {
596
592
//id: this.props.match.params.id,
597
593
```
598
594
599
- ##### Change 3 : TodoComponent onSubmit - Use this.props.navigate
595
+ ##### Change 5 : TodoComponent onSubmit - Use this.props.navigate
600
596
```
601
597
onSubmit(values) {
602
598
You can’t perform that action at this time.
0 commit comments