Skip to content

Commit 5c61963

Browse files
authored
Merge pull request react-navigation#186 from Albert-Gao/source
Enhance the doc about tabBarComponent
2 parents df03b51 + 9590c24 commit 5c61963

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/bottom-tab-navigator.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,25 @@ tabBarOptions: {
4848
}
4949
```
5050

51+
If you want to customize the `tabBarComponent`:
52+
53+
```js
54+
import { createBottomTabNavigator, BottomTabBar } from 'react-navigation-tabs';
55+
56+
const TabBarComponent = (props) => (<BottomTabBar {...props} />);
57+
58+
const TabScreens = createBottomTabNavigator(
59+
{
60+
tabBarComponent: props =>
61+
<TabBarComponent
62+
{...props}
63+
style={{ borderTopColor: '#605F60' }}
64+
/>,
65+
},
66+
);
67+
```
68+
69+
5170
## `navigationOptions` for screens inside of the navigator
5271

5372
#### `title`

0 commit comments

Comments
 (0)