Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add closing brackets #410

Merged
merged 1 commit into from
Mar 28, 2016
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: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ npm i react-native-router-flux --save
import {Actions, Scene, Router} from 'react-native-router-flux';

class App extends React.Component {
render(){
render() {
return <Router>
<Scene key="root">
<Scene key="login" component={Login} title="Login"/>
Expand All @@ -46,6 +46,7 @@ class App extends React.Component {
</Scene>
</Router>
}
}
```
Alternatively you could define all your scenes during compile time and use it later within Router:
```
Expand All @@ -58,9 +59,10 @@ const scenes = Actions.create(
);
///
class App extends React.Component {
render(){
render() {
return <Router scenes={scenes}/>
}
}
```

2. In any app screen:
Expand Down