Skip to content

Commit

Permalink
[Fix typescript] Add title alignment to OptionsTopBarTitle (#4341)
Browse files Browse the repository at this point in the history
Add title alignment to options
  • Loading branch information
jimmyloi authored and guyca committed Nov 22, 2018
1 parent 3b98553 commit bd00422
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/docs/styling.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
5 changes: 5 additions & 0 deletions lib/src/interfaces/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ export interface OptionsTopBarTitle {
* #### (Android specific)
*/
height?: number;
/**
* Title alignment
* #### (Android specific)
*/
alignment?: 'center' | 'fill';
}

export interface OptionsTopBarSubtitle {
Expand Down

0 comments on commit bd00422

Please sign in to comment.