Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class HelloPage extends Component {
return <Text>Hello world!</Text>;
}

};
}

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

};
}

AppRegistry.registerComponent('routerTest', () => MyApp);
```
Expand Down Expand Up @@ -77,7 +77,7 @@ class HelloPage extends Component {
);
}

});
}
```

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()```.
Expand Down