Skip to content

Commit e41f9a8

Browse files
brunohkbxjarvisluong
authored andcommitted
docs: Specify how to use the prop renderIndicator in material-top-tab (react-navigation#419)
1 parent c282b65 commit e41f9a8

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

docs/material-top-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ The route configs object is a mapping from route name to a route config.
4444
* `iconStyle` - Style object for the tab icon.
4545
* `style` - Style object for the tab bar.
4646
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
47+
* `renderIndicator` - Function which takes an object with the current route and returns a custom React Element to be used as a tab indicator.
4748

4849
Example:
4950

website/versioned_docs/version-2.x/material-top-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ The route configs object is a mapping from route name to a route config.
4343
* `iconStyle` - Style object for the tab icon.
4444
* `style` - Style object for the tab bar.
4545
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
46+
* `renderIndicator` - Function which takes an object with the current route and returns a custom React Element to be used as a tab indicator.
4647

4748
Example:
4849

website/versioned_docs/version-3.x/material-top-tab-navigator.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ The route configs object is a mapping from route name to a route config.
4545
* `iconStyle` - Style object for the tab icon.
4646
* `style` - Style object for the tab bar.
4747
* `allowFontScaling` - Whether label font should scale to respect Text Size accessibility settings, default is true.
48+
* `renderIndicator` - Function which takes an object with the current route and returns a custom React Element to be used as a tab indicator.
4849

4950
Example:
5051

0 commit comments

Comments
 (0)