Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updated initialRoute API
  • Loading branch information
alvaromb committed Feb 18, 2016
1 parent d967844 commit 2dc5329
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ class MyApp extends React.Component {
render () {
return (
<TopNavigatorWrapper
initialComponent={MyComponent}
title='My App'
initialRoute={{
component: MyComponent,
title='Title'
}}
/>
)
}
Expand All @@ -89,8 +91,10 @@ class MyComponent extends React.Component {
render () {
return (
<NavigatorWrapper
initialComponent={Component}
title='Title'
initialRoute={{
component: Component,
title='Title'
}}
/>
)
}
Expand Down

0 comments on commit 2dc5329

Please sign in to comment.