Skip to content

Commit 4428fcd

Browse files
thousightjarvisluong
authored andcommitted
Update bottom-tab-navigator.md (react-navigation#369)
Added description to adaptive tabBarOption
1 parent f51d21f commit 4428fcd

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/bottom-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The route configs object is a mapping from route name to a route config, which t
3939
* `labelStyle` - Style object for the tab label.
4040
* `tabStyle` - Style object for the tab.
4141
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
42+
* `adaptive` - Should the tab icons and labels alignment change based on screen size? Defaults to `true` for iOS 11. If `false`, tab icons and labels align vertically all the time. When `true`, tab icons and labels align horizontally on tablet.
4243
* `safeAreaInset` - Override the `forceInset` prop for `<SafeAreaView>`. Defaults to `{ bottom: 'always', top: 'never' }`. Available keys are `top | bottom | left | right` provided with the values `'always' | 'never'`.
4344

4445
Example:

website/versioned_docs/version-2.x/bottom-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ The route configs object is a mapping from route name to a route config, which t
3434
* `labelStyle` - Style object for the tab label.
3535
* `tabStyle` - Style object for the tab.
3636
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
37+
* `adaptive` - Should the tab icons and labels alignment change based on screen size? Defaults to `true` for iOS 11. If `false`, tab icons and labels align vertically all the time. When `true`, tab icons and labels align horizontally on tablet.
3738
* `safeAreaInset` - Override the `forceInset` prop for `<SafeAreaView>`. Defaults to `{ bottom: 'always', top: 'never' }`. Available keys are `top | bottom | left | right` provided with the values `'always' | 'never'`.
3839

3940
Example:

website/versioned_docs/version-3.x/bottom-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ The route configs object is a mapping from route name to a route config, which t
4040
* `labelStyle` - Style object for the tab label.
4141
* `tabStyle` - Style object for the tab.
4242
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
43+
* `adaptive` - Should the tab icons and labels alignment change based on screen size? Defaults to `true` for iOS 11. If `false`, tab icons and labels align vertically all the time. When `true`, tab icons and labels align horizontally on tablet.
4344
* `safeAreaInset` - Override the `forceInset` prop for `<SafeAreaView>`. Defaults to `{ bottom: 'always', top: 'never' }`. Available keys are `top | bottom | left | right` provided with the values `'always' | 'never'`.
4445

4546
Example:

0 commit comments

Comments
 (0)