Types
The types of arrangement.
Arrangement
An entry of screens made by defineArrangement.
interface Arrangement<Props extends object = {}>
| Member | Type | Description |
|---|---|---|
| definitionRequired | ArrangementDefinition<Props> | |
| props | Props | Carries the type of the props; never set. |
ArrangementDefinition
A pair under a name of its own, with every setting: defineArrangement.
interface ArrangementDefinition<Props extends object = {}> extends ScreenArrangement<Props>
| Member | Type | Description |
|---|---|---|
| primaryRequired | string | The screen that owns the bar: its title, buttons, toolbar and status bar are the pair's. It shows alone outside a large window ( |
| axes | 'horizontal' | 'vertical' | 'both' | The axes the pair may use. Where the window allows none of them, only the primary shows. |
| fraction | number |
|
| primaryEdge | 'leading' | 'trailing' | 'top' | 'bottom' | The edge the primary takes. |
| compact | 'primary' | 'pair' | Outside a large window: |
| secondaryRequired | string | The screen beside or under this one: a name of |
| secondaryProps | (props: Props) => object | The props of the secondary from those of the show; without it the same props. |
| style | 'split' | 'overlay' |
|
ScreenArrangement
A screen with a second screen beside or under it in a large window (iPad, iPhone Duo open, Android tablets and open foldables): arrangement of defineScreen and nativeScreen. Anywhere else (any phone, iPhone Duo folded, iOS before 27.1) the screen shows alone, as a plain screen.
interface ScreenArrangement<Props extends object = {}>
| Member | Type | Description |
|---|---|---|
| secondaryRequired | string | The screen beside or under this one: a name of |
| secondaryProps | (props: Props) => object | The props of the secondary from those of the show; without it the same props. |
| style | 'split' | 'overlay' |
|
ArrangementState
How a screen of a pair (defineArrangement) shows now.
interface ArrangementState
| Member | Type | Description |
|---|---|---|
| placementRequired | 'primary' | 'secondary' | Which view of the pair this screen is. |
| layoutRequired | 'sideBySide' | 'stacked' | 'overlay' | 'single' | How the pair lies: |
| frontRequired | boolean |
|
| hiddenRequired | boolean |
|