Skip to content

Commit

Permalink
[react-navigation] Update libdef from react-navigation repo (#2815)
Browse files Browse the repository at this point in the history
* [react-navigation] Update libdef from react-navigation repo

Mostly changes to `StackViewConfig`

* [react-navigation] Mark key in StackActions.replace as optional

react-navigation/react-navigation@07afa55
  • Loading branch information
Ashoat authored and gantoine committed Oct 18, 2018
1 parent 0c6e00f commit 3b86451
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -407,9 +407,15 @@ declare module 'react-navigation' {
headerLayoutPreset?: 'left' | 'center',
headerBackTitleVisible?: boolean,
cardStyle?: ViewStyleProp,
transitionConfig?: () => TransitionConfig,
transitionConfig?: (
transitionProps: NavigationTransitionProps,
prevTransitionProps: ?NavigationTransitionProps,
isModal: boolean
) => TransitionConfig,
onTransitionStart?: () => void,
onTransitionEnd?: () => void,
transparentCard?: boolean,
disableKeyboardHandling?: boolean,
|};

declare export type StackNavigatorConfig = {|
Expand Down Expand Up @@ -528,6 +534,7 @@ declare module 'react-navigation' {
callback: NavigationEventCallback
) => NavigationEventSubscription,
getParam: (paramName: string, fallback?: any) => any,
dangerouslyGetParent: () => NavigationScreenProp<*>,
isFocused: () => boolean,
// Shared action creators that exist for all routers
goBack: (routeKey?: ?string) => boolean,
Expand Down Expand Up @@ -811,7 +818,7 @@ declare module 'react-navigation' {
actions: Array<NavigationNavigateAction>,
}) => NavigationResetAction,
replace: (payload: {
key: string,
key?: string,
routeName: string,
params?: NavigationParams,
action?: NavigationNavigateAction,
Expand Down

0 comments on commit 3b86451

Please sign in to comment.