Skip to content

Commit

Permalink
chore(typescript): export InitialLayout type (react-navigation#5738)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsjgf authored and brentvatne committed Mar 26, 2019
1 parent 445dcfc commit 71cb16d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps, DrawerLabelProps and ScreenProps.
- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps, DrawerLabelProps, ScreenProps and InitialLayout.

## [3.5.1] - [2019-03-19](https://github.com/react-navigation/react-navigation/releases/tag/3.5.1)

Expand Down
9 changes: 7 additions & 2 deletions typescript/react-navigation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1054,20 +1054,25 @@ declare module 'react-navigation' {
lazy?: boolean;
}

export interface InitialLayout {
height: number;
width: number;
}

// From navigators/TabNavigator.js
export interface TabNavigatorConfig
extends NavigationTabRouterConfig,
TabViewConfig {
lazy?: boolean;
removeClippedSubviews?: boolean;
initialLayout?: { height: number; width: number };
initialLayout?: InitialLayout;
}
export interface BottomTabNavigatorConfig
extends NavigationBottomTabRouterConfig,
TabViewConfig {
lazy?: boolean;
removeClippedSubviews?: boolean;
initialLayout?: { height: number; width: number };
initialLayout?: InitialLayout;
}

// From navigators/TabNavigator.js
Expand Down

0 comments on commit 71cb16d

Please sign in to comment.