From bd004225b64c6e4a0bca45103ca0c1ebdbd80ad3 Mon Sep 17 00:00:00 2001 From: Minh Loi Date: Thu, 22 Nov 2018 02:34:47 -0600 Subject: [PATCH] [Fix typescript] Add title alignment to OptionsTopBarTitle (#4341) Add title alignment to options --- docs/docs/styling.md | 3 ++- lib/src/interfaces/Options.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs/styling.md b/docs/docs/styling.md index 78329a60789..10bb0d542c7 100644 --- a/docs/docs/styling.md +++ b/docs/docs/styling.md @@ -235,7 +235,8 @@ Navigation.mergeOptions(this.props.componentId, { elevation: 1.5, // TopBar elevation in dp topMargin: 24, // top margin in dp title: { - height: 70 // TitleBar height in dp + height: 70, // TitleBar height in dp + alignment: 'center', // Center title } }, bottomTabs: { diff --git a/lib/src/interfaces/Options.ts b/lib/src/interfaces/Options.ts index 5e65bbc7bee..2bbfad8f81f 100644 --- a/lib/src/interfaces/Options.ts +++ b/lib/src/interfaces/Options.ts @@ -141,6 +141,11 @@ export interface OptionsTopBarTitle { * #### (Android specific) */ height?: number; + /** + * Title alignment + * #### (Android specific) + */ + alignment?: 'center' | 'fill'; } export interface OptionsTopBarSubtitle {