Skip to content

Commit

Permalink
Add direction property to OptionsLayout (#4847)
Browse files Browse the repository at this point in the history
Add direction property to OptionsLayout interface
  • Loading branch information
mohammadalijf authored and guyca committed Mar 11, 2019
1 parent 81d8b69 commit 025c5e8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/src/interfaces/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ type Color = string;
type FontFamily = string;
type LayoutOrientation = 'portrait' | 'landscape';
type AndroidDensityNumber = number;
type SystemItemIcon = 'done' | 'cancel' | 'edit' | 'save' | 'add' | 'flexibleSpace' | 'fixedSpace' | 'compose' | 'reply' | 'action' | 'organize' | 'bookmarks' | 'search' | 'refresh' | 'stop' | 'camera' | 'trash' | 'play' | 'pause' | 'rewind' | 'fastForward' | 'undo' | 'redo';
type SystemItemIcon = 'done' | 'cancel' | 'edit'
| 'save' | 'add' | 'flexibleSpace' | 'fixedSpace'
| 'compose' | 'reply' | 'action' | 'organize'
| 'bookmarks' | 'search' | 'refresh' | 'stop'
| 'camera' | 'trash' | 'play' | 'pause'
| 'rewind' | 'fastForward' | 'undo' | 'redo';

export interface OptionsSplitView {
/**
Expand Down Expand Up @@ -70,6 +75,12 @@ export interface OptionsLayout {
* #### (Android specific)
*/
topMargin?: number;

/**
* Set language direction.
* only works with DefaultOptions
*/
direction?: 'rtl' | 'ltr';
}

export enum OptionsModalPresentationStyle {
Expand Down Expand Up @@ -247,9 +258,9 @@ export interface OptionsTopBarButton {
* Set the button icon
*/
icon?: ImageRequireSource;
/**
* Set the button icon insets
*/
/**
* Set the button icon insets
*/
iconInsets?: IconInsets;
/**
* Set the button as a custom component
Expand Down

0 comments on commit 025c5e8

Please sign in to comment.