File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ 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
11
+
10
12
## [ 3.5.1] - [ 2019-03-19] ( https://github.com/react-navigation/react-navigation/releases/tag/3.5.1 )
11
13
12
14
## Added
Original file line number Diff line number Diff line change @@ -560,23 +560,28 @@ declare module 'react-navigation' {
560
560
index : number ;
561
561
tintColor ?: string ;
562
562
}
563
+
564
+ export interface TabBarIconProps {
565
+ tintColor : string | null ;
566
+ focused : boolean ;
567
+ horizontal : boolean ;
568
+ }
569
+
570
+ export interface TabBarLabelProps {
571
+ tintColor : string | null ;
572
+ focused : boolean ;
573
+ }
574
+
563
575
// tslint:disable-next-line:strict-export-declare-modifiers
564
576
interface NavigationTabScreenOptionsBase {
565
577
title ?: string ;
566
578
tabBarIcon ?:
567
579
| React . ReactElement < any >
568
- | ( ( options : {
569
- tintColor : string | null ;
570
- focused : boolean ;
571
- horizontal : boolean ;
572
- } ) => React . ReactElement < any > | null ) ;
580
+ | ( ( options : TabBarIconProps ) => React . ReactElement < any > | null ) ;
573
581
tabBarLabel ?:
574
582
| string
575
583
| React . ReactElement < any >
576
- | ( ( options : {
577
- tintColor : string | null ;
578
- focused : boolean ;
579
- } ) => React . ReactElement < any > | string | null ) ;
584
+ | ( ( options : TabBarLabelProps ) => React . ReactElement < any > | string | null ) ;
580
585
tabBarVisible ?: boolean ;
581
586
tabBarTestIDProps ?: { testID ?: string ; accessibilityLabel ?: string } ;
582
587
}
You can’t perform that action at this time.
0 commit comments