Skip to content

Commit 84978fd

Browse files
committed
Update README.md
1 parent 0467599 commit 84978fd

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class HelloPage extends Component {
2828
render() {
2929
return <Text>Hello world!</Text>;
3030
}
31-
31+
3232
}
3333

3434
// Your route object should contain at least:
@@ -47,7 +47,7 @@ class MyApp extends Component {
4747
<Router firstRoute={firstRoute} />
4848
);
4949
}
50-
50+
5151
}
5252

5353
AppRegistry.registerComponent('routerTest', () => MyApp);
@@ -76,7 +76,7 @@ class HelloPage extends Component {
7676
</View>
7777
);
7878
}
79-
79+
8080
}
8181
```
8282

@@ -146,16 +146,13 @@ Events emitted by the router:
146146
A more advanced example: Twitter app
147147
------------------------------------
148148

149-
To see more of the router in action, you can check out the Twitter example app that comes with the package. Just make sure that you first drag all the images from ```node_modules/react-native-simple-router/twitter-example/images``` to your project's Images.xcassets
149+
To see more of the router in action, you can check out the Twitter example app that comes with the package.
150150

151-
After that, don't forget to rebuild the app in XCode before you launch the simulator. Then test the app by requiring the TwitterApp component:
151+
Test the app by requiring the TwitterApp component:
152152

153153
```javascript
154+
import React, { AppRegistry } from 'react-native';
154155
import TwitterApp from './node_modules/react-native-simple-router/twitter-example';
155156

156-
var {
157-
AppRegistry
158-
} = React;
159-
160157
AppRegistry.registerComponent('routerTest', () => TwitterApp);
161158
```

0 commit comments

Comments
 (0)