Skip to content

Commit

Permalink
Update Flowtype to support navigation.navigate({}) (#3843)
Browse files Browse the repository at this point in the history
  • Loading branch information
gre authored and ericvicenti committed Mar 26, 2018
1 parent 2232e39 commit d57d118
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion flow/react-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,12 @@ declare module 'react-navigation' {
goBack: (routeKey?: ?string) => boolean,
dismiss: () => boolean,
navigate: (
routeName: string,
routeName: string | {
routeName: string,
params?: NavigationParams,
action?: NavigationNavigateAction,
key?: string
},
params?: NavigationParams,
action?: NavigationNavigateAction
) => boolean,
Expand Down

0 comments on commit d57d118

Please sign in to comment.