Skip to content

Commit e9c95b9

Browse files
committed
Update README.md
Adding some styling to the header so it is visible to first time users
1 parent 47d5560 commit e9c95b9

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,21 @@ var firstRoute = {
4242
// The Router wrapper
4343
class MyApp extends React.Component {
4444

45-
render() {
46-
return (
47-
<Router firstRoute={firstRoute} />
48-
);
45+
constructor(props) {
46+
super(props);
47+
this.styles = StyleSheet.create({
48+
header: {
49+
backgroundColor: '#5cafec',
50+
},
51+
});
4952
}
5053

54+
render() {
55+
return <Router
56+
firstRoute={firstRoute}
57+
headerStyle={this.styles.header}
58+
/>
59+
}
5160
}
5261

5362
AppRegistry.registerComponent('routerTest', () => MyApp);

0 commit comments

Comments
 (0)