correct getLabel to getLabelText (#5865)

* correct getLabel to getLabelText

* Update CHANGELOG.md
This commit is contained in:
Luong Dang Hai
2019-05-03 04:53:08 +03:00
parent 75e9d5b0d7
commit 2b1e12340a
2 changed files with 3 additions and 2 deletions

View File

@@ -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)

View File

@@ -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
@@ -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