Skip to content

Commit 15c4617

Browse files
authored
Add tabBarPosition prop to Material Top Tab
It may sound a bit weird to have a prop `tabBarPosition` on Material *Top* Tab, but it could be useful to use this component as a bottom tab.
1 parent f63f0ae commit 15c4617

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/material-top-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +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+
* `tabBarPosition` - Position of the tab bar, can be `'top'` or `'bottom'`, default is `top`.
2324
* `swipeEnabled` - Whether to allow swiping between tabs.
2425
* `animationEnabled` - Whether to animate when changing tabs.
2526
* `initialLayout` - Optional object containing the initial `height` and `width`, can be passed to prevent the one frame delay in [react-native-tab-view](https://github.com/react-native-community/react-native-tab-view#avoid-one-frame-delay) rendering.

0 commit comments

Comments
 (0)