mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
fix: add missing in HeaderBackButtonProps in flow and TS definitions (#6048)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
@@ -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>;
|
||||
|
||||
|
||||
@@ -1397,6 +1397,7 @@ declare module 'react-navigation' {
|
||||
truncatedTitle?: string;
|
||||
width?: number;
|
||||
disabled?: boolean;
|
||||
backTitleVisible?: boolean;
|
||||
}
|
||||
|
||||
export const HeaderBackButton: React.ComponentClass<HeaderBackButtonProps>;
|
||||
|
||||
Reference in New Issue
Block a user