From 14446d2964a8421ff88e243d34d094475e7e36e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Soner=20K=C3=B6ksal?= <15015690+renjfk@users.noreply.github.com> Date: Mon, 1 Jul 2019 16:10:36 +0300 Subject: [PATCH] fix: add missing in HeaderBackButtonProps in flow and TS definitions (#6048) --- packages/react-navigation/CHANGELOG.md | 1 + packages/react-navigation/flow/react-navigation.js | 2 ++ packages/react-navigation/typescript/react-navigation.d.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/packages/react-navigation/CHANGELOG.md b/packages/react-navigation/CHANGELOG.md index 4802d234..625dcb6a 100644 --- a/packages/react-navigation/CHANGELOG.md +++ b/packages/react-navigation/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Fixes - Fix `navigationOptions` type from `NavigationScreenProp` to `NavigationScreenConfig`. - 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] diff --git a/packages/react-navigation/flow/react-navigation.js b/packages/react-navigation/flow/react-navigation.js index e057a12c..bd148983 100644 --- a/packages/react-navigation/flow/react-navigation.js +++ b/packages/react-navigation/flow/react-navigation.js @@ -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>; diff --git a/packages/react-navigation/typescript/react-navigation.d.ts b/packages/react-navigation/typescript/react-navigation.d.ts index 21860f94..7de7e1be 100644 --- a/packages/react-navigation/typescript/react-navigation.d.ts +++ b/packages/react-navigation/typescript/react-navigation.d.ts @@ -1397,6 +1397,7 @@ declare module 'react-navigation' { truncatedTitle?: string; width?: number; disabled?: boolean; + backTitleVisible?: boolean; } export const HeaderBackButton: React.ComponentClass;