Skip to content

Commit 33b27eb

Browse files
committed
Update bottom navigation docs
1 parent 4a139eb commit 33b27eb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
1.24 MB
Loading

docs/material-bottom-tab-navigator.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_label: createMaterialBottomTabNavigator
66

77
A material-design themed tab bar on the bottom of the screen that lets you switch between different routes. Routes are lazily initialized -- their screen components are not mounted until they are first focused.
88

9+
<img src="/docs/assets/navigators/bottom-navigation.gif" style="width: 420px; max-width: 100%">
10+
911
To use this navigator, you need to install `react-navigation-material-bottom-tabs`
1012

1113
```
@@ -24,8 +26,11 @@ The route configs object is a mapping from route name to a route config.
2426

2527
## MaterialBottomTabNavigatorConfig
2628

27-
* `shifting` - Whether the shifting style is used, the active tab appears wider and the inactive tabs won't have a label. By default, this is true when you have more than 3 tabs.
28-
* `activeTintColor` - Label and icon color of the active tab.
29+
* `shifting` - Whether the shifting style is used, the active tab appears wider and the inactive tabs won't have a label. By default, this is `true` when you have more than 3 tabs.
30+
* `labeled` - Whether to show labels in tabs. When `false`, only icons will be displayed.
31+
* `activeTintColor` - Custom color for icon and label in the active tab.
32+
* `inactiveTintColor` - Custom color for icon and label in the inactive tab.
33+
* `barStyle` - Style for the bottom navigation bar. You can set a bottom padding here if you have a translucent navigation bar on Android: `barStyle={{ paddingBottom: 48 }}`.
2934
* `initialRouteName` - The routeName for the initial tab route when first loading.
3035
* `order` - Array of routeNames which defines the order of the tabs.
3136
* `paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs.

0 commit comments

Comments
 (0)