chore(typescript): export InitialLayout type (#5738)

This commit is contained in:
Jose G
2019-03-27 00:14:32 +01:00
committed by Brent Vatne
parent 445dcfcdf2
commit 71cb16dc7f
2 changed files with 8 additions and 3 deletions

View File

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

View File

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