Skip to content

Commit

Permalink
Add closing brackets
Browse files Browse the repository at this point in the history
Add closing brackets for example code
  • Loading branch information
RWOverdijk committed Mar 27, 2016
1 parent 8acd239 commit 27075d6
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 27075d6

Please sign in to comment.