File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased]
9
9
10
- - Export TabBarIconProps and TabBarLabelProps
10
+ - Export TabBarIconProps, TabBarLabelProps, DrawerIconProps and DrawerLabelProps.
11
11
12
12
## [ 3.5.1] - [ 2019-03-19] ( https://github.com/react-navigation/react-navigation/releases/tag/3.5.1 )
13
13
Original file line number Diff line number Diff line change @@ -613,21 +613,25 @@ declare module 'react-navigation' {
613
613
614
614
export type DrawerLockMode = 'unlocked' | 'locked-closed' | 'locked-open' ;
615
615
616
+ export interface DrawerIconProps {
617
+ tintColor : string | null ;
618
+ focused : boolean ;
619
+ }
620
+
621
+ export interface DrawerLabelProps {
622
+ tintColor : string | null ;
623
+ focused : boolean ;
624
+ }
625
+
616
626
export interface NavigationDrawerScreenOptions {
617
627
title ?: string ;
618
628
drawerIcon ?:
619
629
| React . ReactElement < any >
620
- | ( ( options : {
621
- tintColor : string | null ;
622
- focused : boolean ;
623
- } ) => React . ReactElement < any > | null ) ;
630
+ | ( ( options : DrawerIconProps ) => React . ReactElement < any > | null ) ;
624
631
drawerLabel ?:
625
632
| string
626
633
| React . ReactElement < any >
627
- | ( ( options : {
628
- tintColor : string | null ;
629
- focused : boolean ;
630
- } ) => React . ReactElement < any > | null ) ;
634
+ | ( ( options : DrawerLabelProps ) => React . ReactElement < any > | null ) ;
631
635
drawerLockMode ?: DrawerLockMode ;
632
636
}
633
637
You can’t perform that action at this time.
0 commit comments