Skip to content

Commit 2dc5329

Browse files
committed
Update README.md
Updated initialRoute API
1 parent d967844 commit 2dc5329

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ class MyApp extends React.Component {
6565
render () {
6666
return (
6767
<TopNavigatorWrapper
68-
initialComponent={MyComponent}
69-
title='My App'
68+
initialRoute={{
69+
component: MyComponent,
70+
title='Title'
71+
}}
7072
/>
7173
)
7274
}
@@ -89,8 +91,10 @@ class MyComponent extends React.Component {
8991
render () {
9092
return (
9193
<NavigatorWrapper
92-
initialComponent={Component}
93-
title='Title'
94+
initialRoute={{
95+
component: Component,
96+
title='Title'
97+
}}
9498
/>
9599
)
96100
}

0 commit comments

Comments
 (0)