diff --git a/README.md b/README.md index 565f88402..db99841f9 100644 --- a/README.md +++ b/README.md @@ -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 @@ -46,6 +46,7 @@ class App extends React.Component { } +} ``` Alternatively you could define all your scenes during compile time and use it later within Router: ``` @@ -58,9 +59,10 @@ const scenes = Actions.create( ); /// class App extends React.Component { - render(){ + render() { return } +} ``` 2. In any app screen: