diff --git a/packages/react-navigation/CHANGELOG.md b/packages/react-navigation/CHANGELOG.md index 506ee699..6aa51614 100644 --- a/packages/react-navigation/CHANGELOG.md +++ b/packages/react-navigation/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +- Update flow definition for `withNavigation` and `withNavigationFocus` to support `defaultProps` + ## [3.0.9] - [2018-12-19](https://github.com/react-navigation/react-navigation/releases/tag/3.0.9) ## Fixed diff --git a/packages/react-navigation/flow/react-navigation.js b/packages/react-navigation/flow/react-navigation.js index ec7eae54..82a92d52 100644 --- a/packages/react-navigation/flow/react-navigation.js +++ b/packages/react-navigation/flow/react-navigation.js @@ -1208,19 +1208,19 @@ declare module 'react-navigation' { }; declare export var TabBarBottom: React$ComponentType<_TabBarBottomProps>; - declare export function withNavigation( - Component: React$ComponentType + declare export function withNavigation>( + Component: ComponentType ): React$ComponentType< $Diff< - Props, + React$ElementConfig, { navigation: NavigationScreenProp | void, } > >; - declare export function withNavigationFocus( - Component: React$ComponentType - ): React$ComponentType<$Diff>; + declare export function withNavigationFocus>( + Component: ComponentType + ): React$ComponentType<$Diff, { isFocused: boolean | void }>>; declare export function getNavigation( router: NavigationRouter,