mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
Make TabNavigator code example formatting consistent (#462)
* Make TabNavigator code example formatting consistent * Fix typo in StackRouter docs
This commit is contained in:
@@ -114,10 +114,12 @@ Example:
|
||||
```js
|
||||
tabBarOptions: {
|
||||
activeTintColor: '#e91e63',
|
||||
labelStyle: { fontSize: 12 },
|
||||
labelStyle: {
|
||||
fontSize: 12,
|
||||
},
|
||||
style: {
|
||||
backgroundColor: 'blue',
|
||||
}
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
@@ -145,7 +147,7 @@ tabBarOptions: {
|
||||
},
|
||||
style: {
|
||||
backgroundColor: 'blue',
|
||||
}
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ const MyApp = StackRouter({
|
||||
|
||||
### RouteConfig
|
||||
|
||||
A basic stack router have a route config. Here is an example configuration:
|
||||
A basic stack router expects a route config object. Here is an example configuration:
|
||||
|
||||
```js
|
||||
const MyApp = StackRouter({ // This is the RouteConfig:
|
||||
|
||||
Reference in New Issue
Block a user