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?: BlazeFontA BlazeFont representing the font of the title.
letterSpacing
letterSpacing?: numberA 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?: stringA string representing the text color of the title.
lineHeight
lineHeight?: numberA number representing the line height of the title.
maxLines
maxLines?: numberAn number representing the number of lines for the title.
textAlign
textAlign: BlazeTextAlignAn 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;
}Updated 16 days ago
