Skip to main content
Version: 7.37.0

Subtitle Options

Controls the top bar subtitle.

const options = {
topBar: {
subtitle: {},
},
};

text#

Subtitle text.

TypeRequiredPlatform
stringNoBoth

fontSize#

Subtitle fontSize. On Android this value is sp.

TypeRequiredPlatform
numberNoBoth

color#

Subtitle color.

TypeRequiredPlatform
ColorNoBoth

fontFamily#

Subtitle FontFamily.

TypeRequiredPlatform
FontFamilyNoBoth

fontStyle#

TypeRequiredPlatform
enum('normal', 'italic')NoBoth

fontWeight#

TypeRequiredPlatform
enum('normal', 'bold', '100', '200', '300', '400', '500', '600', '700', '800', '900')NoBoth

alignment#

fill will make the subtitle stretch and consume all available space in the TopBar while center will center the subtitle in the middle of the TopBar.

TypeRequiredPlatform
enum('center', 'fill')NoBoth

testID#

Used to interact with the TopBar in e2e tests.

TypeRequiredPlatform
stringNoBoth