Skip to content

Commit

Permalink
[TypeScript] Export DrawerIconProps and DrawerLabelProps (react-navig…
Browse files Browse the repository at this point in the history
…ation#5715)

* chore(typescript): export DrawerIconProps and DrawerLabelProps

* chore: update changelog
  • Loading branch information
itsjgf authored and brentvatne committed Mar 21, 2019
1 parent dbf165d commit b9f50bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 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 and TabBarLabelProps
- Export TabBarIconProps, TabBarLabelProps, DrawerIconProps and DrawerLabelProps.

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

Expand Down
20 changes: 12 additions & 8 deletions typescript/react-navigation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,21 +613,25 @@ declare module 'react-navigation' {

export type DrawerLockMode = 'unlocked' | 'locked-closed' | 'locked-open';

export interface DrawerIconProps {
tintColor: string | null;
focused: boolean;
}

export interface DrawerLabelProps {
tintColor: string | null;
focused: boolean;
}

export interface NavigationDrawerScreenOptions {
title?: string;
drawerIcon?:
| React.ReactElement<any>
| ((options: {
tintColor: string | null;
focused: boolean;
}) => React.ReactElement<any> | null);
| ((options: DrawerIconProps) => React.ReactElement<any> | null);
drawerLabel?:
| string
| React.ReactElement<any>
| ((options: {
tintColor: string | null;
focused: boolean;
}) => React.ReactElement<any> | null);
| ((options: DrawerLabelProps) => React.ReactElement<any> | null);
drawerLockMode?: DrawerLockMode;
}

Expand Down

0 comments on commit b9f50bd

Please sign in to comment.