Skip to content

Commit

Permalink
Issue-5701: TabBarBottom -> BottomTabBar in type definitions (react-n…
Browse files Browse the repository at this point in the history
…avigation#5702)

* Issue-5701: TabBarBottom -> BottomTabBar in type definitions

* BottomTabBar changelog update
  • Loading branch information
powersjcb authored and brentvatne committed Mar 19, 2019
1 parent 89786a3 commit 73d416e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- fixed types for `BottomTabBar`

## Changed

- Updated react-native-gesture-handler to ~3.1.0
Expand Down
4 changes: 2 additions & 2 deletions flow/react-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ declare module 'react-navigation' {
};
declare export var TabBarTop: React$ComponentType<_TabBarTopProps>;

declare type _TabBarBottomProps = {
declare type _BottomTabBarProps = {
activeTintColor: string,
activeBackgroundColor: string,
adaptive?: boolean,
Expand Down Expand Up @@ -1229,7 +1229,7 @@ declare module 'react-navigation' {
tabStyle?: ViewStyleProp,
showIcon?: boolean,
};
declare export var TabBarBottom: React$ComponentType<_TabBarBottomProps>;
declare export var BottomTabBar: React$ComponentType<_BottomTabBarProps>;

declare export function withNavigation<
Props: {},
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 @@ -1102,7 +1102,7 @@ declare module 'react-navigation' {
iconStyle?: ViewStyle;
}

export interface TabBarBottomProps {
export interface BottomTabBarProps {
activeTintColor: string;
activeBackgroundColor: string;
adaptive?: boolean;
Expand Down Expand Up @@ -1132,7 +1132,7 @@ declare module 'react-navigation' {
}

export const TabBarTop: React.ComponentType<TabBarTopProps>;
export const TabBarBottom: React.ComponentType<TabBarBottomProps>;
export const BottomTabBar: React.ComponentType<BottomTabBarProps>;

/**
* NavigationActions
Expand Down

0 comments on commit 73d416e

Please sign in to comment.