Skip to content

Commit

Permalink
correct getLabel to getLabelText (#5865)
Browse files Browse the repository at this point in the history
* correct getLabel to getLabelText

* Update CHANGELOG.md
  • Loading branch information
jarvisluong authored and brentvatne committed May 3, 2019
1 parent 9a8a346 commit 96cb00b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Fixes

- Update typescript - `TabBarTop` is now `MaterialTopTabBar`
- Update typescript - `getLabel` is now `getLabelText` in BottomTabProps and TopTabProps

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

Expand Down
4 changes: 2 additions & 2 deletions typescript/react-navigation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ declare module 'react-navigation' {
tabBarPosition: string;
navigation: NavigationScreenProp<NavigationState>;
jumpToIndex: (index: number) => void;
getLabel: (scene: TabScene) => React.ReactNode | string;
getLabelText: (scene: TabScene) => React.ReactNode | string;
getOnPress: (
previousScene: NavigationRoute,
scene: TabScene
Expand All @@ -1141,7 +1141,7 @@ declare module 'react-navigation' {
position: AnimatedValue;
navigation: NavigationScreenProp<NavigationState>;
jumpToIndex: (index: number) => void;
getLabel: (scene: TabScene) => React.ReactNode | string;
getLabelText: (scene: TabScene) => React.ReactNode | string;
getOnPress: (
previousScene: NavigationRoute,
scene: TabScene
Expand Down

0 comments on commit 96cb00b

Please sign in to comment.