Skip to content

Commit

Permalink
Improved TypeScript definition for bottom tab navigationOptions. (#5796)
Browse files Browse the repository at this point in the history
  • Loading branch information
guptaamol authored and brentvatne committed Apr 10, 2019
1 parent 6e80d7c commit 48b1bd9
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 @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
- Improved Type Definition For Navigator navigationOptions.

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

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 @@ -549,14 +549,14 @@ declare module 'react-navigation' {
export interface NavigationTabRouterConfig
extends NavigationTabRouterConfigBase {
defaultNavigationOptions?: NavigationScreenConfig<NavigationScreenOptions>;
navigationOptions?: NavigationTabRouterConfigBase;
navigationOptions?: NavigationScreenConfig<any>;
}
export interface NavigationBottomTabRouterConfig
extends NavigationTabRouterConfigBase {
defaultNavigationOptions?: NavigationScreenConfig<
NavigationBottomTabScreenOptions
>;
navigationOptions?: NavigationTabRouterConfigBase;
navigationOptions?: NavigationScreenConfig<any>;
}
export interface TabScene {
route: NavigationRoute;
Expand Down

0 comments on commit 48b1bd9

Please sign in to comment.