BlazeTitleStyle

The BlazeTitleStyle interface defines the appearance settings for the title of a BlazeWidgetItemStyle. This includes properties such as font, letter spacing, text color, line height, number of lines, and alignment.

Properties

font

font?: BlazeFont

A BlazeFont representing the font of the title.

letterSpacing

letterSpacing?: number

A number representing the letter spacing for the title.

The value is in points on iOS and Android. Android converts it to em (the value divided by textSize), so one value serves both platforms. It applies to every widget text style that uses BlazeTitleStyle: title, subtitle, description, badge, status indicator, and duration element.

Changed in React Native SDK 2.0.1: on Android, letterSpacing is in points. Before, it was in em. If your Android app tuned it in em, multiply the value by textSize.

textColor

textColor?: string

A string representing the text color of the title.

lineHeight

lineHeight?: number

A number representing the line height of the title.

maxLines

maxLines?: number

An number representing the number of lines for the title.

textAlign

textAlign: BlazeTextAlign

An TextAlign representing the alignment of the title.

Initialization

The BlazeWidgetItemTitleStyle can be initialized with custom values for its properties:

interface BlazeTitleStyle {
  font?: BlazeFont;
  textSize?: number;
  letterSpacing?: number;
  textColor?: string; //Hex
  lineHeight?: number;
  maxLines?: number;
  textAlign?: BlazeTextAlign;
}

Did this page help you?