Skip to content

Commit f5c945d

Browse files
committed
Fixing typos in Readme
1 parent 63b8dde commit f5c945d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class HelloPage extends Component {
2929
return <Text>Hello world!</Text>;
3030
}
3131

32-
};
32+
}
3333

3434
// Your route object should contain at least:
3535
// - The name of the route (which will become the navigation bar title)
@@ -48,7 +48,7 @@ class MyApp extends Component {
4848
);
4949
}
5050

51-
};
51+
}
5252

5353
AppRegistry.registerComponent('routerTest', () => MyApp);
5454
```
@@ -77,7 +77,7 @@ class HelloPage extends Component {
7777
);
7878
}
7979

80-
});
80+
}
8181
```
8282

8383
Now, when you click on "Next page please!", it will go to the next page (which in this case is still HelloPage but with a new title). Keep in mind that ```this.props.toRoute()``` needs to be called from one of the top-level routes, therefore, if your link is deeply nested within multiple components, you need to make sure that the action "bubbles up" until it reaches the parent route, which in turn calls ```this.props.toRoute()```.

0 commit comments

Comments
 (0)