Skip to content

Commit

Permalink
fix: add missing in HeaderBackButtonProps in flow and TS definitions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
renjfk authored and satya164 committed Jul 1, 2019
1 parent b05cdcb commit 8361745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## Fixes
- Fix `navigationOptions` type from `NavigationScreenProp<NavigationRoute>` to `NavigationScreenConfig<Options>`.
- Fix missing `isFirstRouteInParent` type in typescript and flow.
- Add missing `backTitleVisible` for typescript, `disabled` and `backTitleVisible` for flow definitions in type `HeaderBackButtonProps`

## [3.11.0]

Expand Down
2 changes: 2 additions & 0 deletions flow/react-navigation.js
Expand Up @@ -1129,6 +1129,8 @@ declare module 'react-navigation' {
tintColor?: ?string,
truncatedTitle?: ?string,
width?: ?number,
disabled?: boolean,
backTitleVisible?: boolean,
};
declare export var HeaderBackButton: React$ComponentType<_HeaderBackButtonProps>;

Expand Down
1 change: 1 addition & 0 deletions typescript/react-navigation.d.ts
Expand Up @@ -1397,6 +1397,7 @@ declare module 'react-navigation' {
truncatedTitle?: string;
width?: number;
disabled?: boolean;
backTitleVisible?: boolean;
}

export const HeaderBackButton: React.ComponentClass<HeaderBackButtonProps>;
Expand Down

0 comments on commit 8361745

Please sign in to comment.