Skip to content

Files

Latest commit

 

History

History
65 lines (44 loc) · 1.5 KB

options-layout.mdx

File metadata and controls

65 lines (44 loc) · 1.5 KB
id title sidebar_label
options-layout
Layout Options
Layout
const options = {
  layout: {},
};

fitSystemWindows

Type Required Platform
boolean No Both

backgroundColor

Set the screen background color.

Type Required Platform
Color No Both

componentBackgroundColor

Set background color only for components. On Android, using this option instead of backgroundColor helps reduce overdraw.

Type Required Platform
Color No Both

orientation

Set the allowed orientations.

Type Required Platform
['portrait', 'landscape'] No Both

topMargin

Set the layout top margin.

Type Required Platform
number No Android

direction

Set language direction, only works with DefaultOptions. locale is an Android specific option which sets the direction according to the device locale.

Type Required Platform
enum('rtl', 'ltr', 'locale') No Both

autoHideHomeIndicator

Controls the application's preferred home indicator auto-hiding.

Type Required Platform
boolean No iOS