Skip to content

Commit

Permalink
Merge pull request #410 from RWOverdijk/patch-1
Browse files Browse the repository at this point in the history
Add closing brackets
  • Loading branch information
aksonov committed Mar 28, 2016
2 parents bbb20bb + 27075d6 commit 72ae633
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 72ae633

Please sign in to comment.