@@ -238,6 +238,7 @@ declare module 'react-navigation' {
238
238
*/
239
239
index : number ,
240
240
routes : Array < NavigationRoute > ,
241
+ isTransitioning ? : boolean ,
241
242
} ;
242
243
243
244
declare export type NavigationRoute =
@@ -407,7 +408,9 @@ declare module 'react-navigation' {
407
408
NavigationSceneRendererProps & {
408
409
mode : HeaderMode ,
409
410
router : NavigationRouter < NavigationState , NavigationStackScreenOptions> ,
410
- getScreenDetails : NavigationScene => NavigationScreenDetails < NavigationStackScreenOptions > ,
411
+ getScreenDetails : NavigationScene => NavigationScreenDetails <
412
+ NavigationStackScreenOptions
413
+ > ,
411
414
leftInterpolator : ( props : NavigationSceneRendererProps ) => { } ,
412
415
titleInterpolator : ( props : NavigationSceneRendererProps ) => { } ,
413
416
rightInterpolator : ( props : NavigationSceneRendererProps ) => { } ,
@@ -466,10 +469,10 @@ declare module 'react-navigation' {
466
469
disableKeyboardHandling ?: boolean ,
467
470
| } ;
468
471
469
- declare export type StackNavigatorConfig = { |
472
+ declare export type StackNavigatorConfig = $Shape < { |
470
473
...NavigationStackViewConfig ,
471
474
...NavigationStackRouterConfig ,
472
- | } ;
475
+ | } > ;
473
476
474
477
/**
475
478
* Switch Navigator
@@ -658,7 +661,9 @@ declare module 'react-navigation' {
658
661
onWillBlur ? : NavigationEventCallback ,
659
662
onDidBlur ? : NavigationEventCallback ,
660
663
} ;
661
- declare export var NavigationEvents: React$ComponentType< _NavigationEventsProps > ;
664
+ declare export var NavigationEvents: React$ComponentType<
665
+ _NavigationEventsProps
666
+ > ;
662
667
663
668
/**
664
669
* Navigation container
@@ -709,6 +714,7 @@ declare module 'react-navigation' {
709
714
isStale : boolean ,
710
715
key : string ,
711
716
route : NavigationRoute ,
717
+ descriptor : ?NavigationDescriptor ,
712
718
} ;
713
719
714
720
declare export type NavigationTransitionProps = $Shape < {
@@ -920,9 +926,9 @@ declare module 'react-navigation' {
920
926
router : NavigationRouter < S , O > ,
921
927
} ;
922
928
923
- declare type NavigationDescriptor = {
929
+ declare export type NavigationDescriptor = {
924
930
key : string ,
925
- state : NavigationLeafRoute | NavigationStateRoute ,
931
+ state : NavigationRoute ,
926
932
navigation : NavigationScreenProp < * > ,
927
933
getComponent : ( ) => React$ComponentType < { } > ,
928
934
} ;
@@ -1037,7 +1043,9 @@ declare module 'react-navigation' {
1037
1043
*/
1038
1044
transitionConfig ?: ( ) => TransitionConfig ,
1039
1045
} & NavigationNavigatorProps < NavigationStackScreenOptions , NavigationState > ;
1040
- declare export var CardStackTransitioner : React$ComponentType < _CardStackTransitionerProps > ;
1046
+ declare export var CardStackTransitioner : React$ComponentType <
1047
+ _CardStackTransitionerProps
1048
+ > ;
1041
1049
1042
1050
declare type _CardStackProps = {
1043
1051
screenProps ?: { } ,
@@ -1108,7 +1116,9 @@ declare module 'react-navigation' {
1108
1116
truncatedTitle ?: ?string ,
1109
1117
width ?: ?number ,
1110
1118
} ;
1111
- declare export var HeaderBackButton : React$ComponentType < _HeaderBackButtonProps > ;
1119
+ declare export var HeaderBackButton : React$ComponentType <
1120
+ _HeaderBackButtonProps
1121
+ > ;
1112
1122
1113
1123
declare type _DrawerViewProps = {
1114
1124
drawerLockMode ?: 'unlocked' | 'locked-closed' | 'locked-open' ,
0 commit comments