Skip to content

Commit ba8b290

Browse files
committed
Enhance the doc about tabBarComponent
react-navigation/react-navigation#4297 (comment)
1 parent 31779c4 commit ba8b290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/bottom-tab-navigator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The route configs object is a mapping from route name to a route config.
2020
* `order` - Array of routeNames which defines the order of the tabs.
2121
* `paths` - Provide a mapping of routeName to path config, which overrides the paths set in the routeConfigs.
2222
* `backBehavior` - Should the back button cause a tab switch to the initial tab? If yes, set to `initialRoute`, otherwise `none`. Defaults to `initialRoute` behavior.
23-
* `tabBarComponent` - Optional, override component to use as the tab bar.
23+
* `tabBarComponent` - Optional, override component to use as the tab bar. You need to import `BottomTabBar` from `react-navigation-tabs` in order to receive the passing `props`.
2424
* `tabBarOptions` - An object with the following properties:
2525
* `activeTintColor` - Label and icon color of the active tab.
2626
* `activeBackgroundColor` - Background color of the active tab.

0 commit comments

Comments
 (0)