Skip to content

Commit 96cb00b

Browse files
jarvisluongbrentvatne
authored andcommitted
correct getLabel to getLabelText (react-navigation#5865)
* correct getLabel to getLabelText * Update CHANGELOG.md
1 parent 9a8a346 commit 96cb00b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
## Fixes
1313

1414
- Update typescript - `TabBarTop` is now `MaterialTopTabBar`
15+
- Update typescript - `getLabel` is now `getLabelText` in BottomTabProps and TopTabProps
1516

1617
## [3.9.0] - [2019-04-23](https://github.com/react-navigation/react-navigation/releases/tag/3.9.0)
1718

typescript/react-navigation.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ declare module 'react-navigation' {
11161116
tabBarPosition: string;
11171117
navigation: NavigationScreenProp<NavigationState>;
11181118
jumpToIndex: (index: number) => void;
1119-
getLabel: (scene: TabScene) => React.ReactNode | string;
1119+
getLabelText: (scene: TabScene) => React.ReactNode | string;
11201120
getOnPress: (
11211121
previousScene: NavigationRoute,
11221122
scene: TabScene
@@ -1141,7 +1141,7 @@ declare module 'react-navigation' {
11411141
position: AnimatedValue;
11421142
navigation: NavigationScreenProp<NavigationState>;
11431143
jumpToIndex: (index: number) => void;
1144-
getLabel: (scene: TabScene) => React.ReactNode | string;
1144+
getLabelText: (scene: TabScene) => React.ReactNode | string;
11451145
getOnPress: (
11461146
previousScene: NavigationRoute,
11471147
scene: TabScene

0 commit comments

Comments
 (0)