Skip to main content
Version: 6.12.2

Layout Options

const options = {
layout: {}
};

fitSystemWindows#

TypeRequiredPlatform
booleanNoBoth

backgroundColor#

Set the screen background color.

TypeRequiredPlatform
ColorNoBoth

componentBackgroundColor#

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

TypeRequiredPlatform
ColorNoBoth

orientation#

Set the allowed orientations.

TypeRequiredPlatform
['portrait', 'landscape']NoBoth

topMargin#

Set the layout top margin.

TypeRequiredPlatform
numberNoAndroid

direction#

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

TypeRequiredPlatform
enum('rtl', 'ltr', 'locale')NoBoth