diff --git a/flow/react-navigation.js b/flow/react-navigation.js index 193ce7e..640ba84 100644 --- a/flow/react-navigation.js +++ b/flow/react-navigation.js @@ -535,14 +535,26 @@ declare module 'react-navigation' { ) => NavigationEventSubscription, getParam: ( paramName: ParamName, - fallback?: $ElementType<$PropertyType<{| - ...{| params: {| [ParamName]: void |} |}, - ...$Exact, - |}, 'params'>, ParamName>, - ) => $ElementType<$PropertyType<{| - ...{| params: {| [ParamName]: void |} |}, - ...$Exact, - |}, 'params'>, ParamName>, + fallback?: $ElementType< + $PropertyType< + {| + ...{| params: {| [ParamName]: void |} |}, + ...$Exact, + |}, + 'params' + >, + ParamName + > + ) => $ElementType< + $PropertyType< + {| + ...{| params: {| [ParamName]: void |} |}, + ...$Exact, + |}, + 'params' + >, + ParamName + >, dangerouslyGetParent: () => NavigationScreenProp<*>, isFocused: () => boolean, // Shared action creators that exist for all routers @@ -1213,6 +1225,6 @@ declare module 'react-navigation' { dispatch: NavigationDispatch, actionSubscribers: Set, getScreenProps: () => {}, - getCurrentNavigation: () => NavigationScreenProp + getCurrentNavigation: () => ?NavigationScreenProp ): NavigationScreenProp; }