Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 4e2fa6a

Browse files
committed
Type fix
1 parent 3fc19f5 commit 4e2fa6a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

flow-typed/npm/react-navigation_v2.x.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,6 +1175,6 @@ declare module 'react-navigation' {
11751175
dispatch: NavigationDispatch,
11761176
actionSubscribers: Set<NavigationEventCallback>,
11771177
getScreenProps: () => {},
1178-
getCurrentNavigation: () => NavigationScreenProp<State>,
1178+
getCurrentNavigation: () => ?NavigationScreenProp<State>,
11791179
): NavigationScreenProp<State>;
11801180
}

src/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function createNavigationPropConstructor(key: string) {
124124
dispatch: NavigationDispatch,
125125
state: State,
126126
router: NavigationRouter<*, *>,
127-
getCurrentNavigation: () => NavigationScreenProp<State>,
127+
getCurrentNavigation: () => ?NavigationScreenProp<State>,
128128
): NavigationScreenProp<State> => {
129129
invariant(
130130
router,

0 commit comments

Comments
 (0)