GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemBadgeStateStyle - React Native

The BlazeWidgetItemBadgeStateStyle class represents the configuration for the badge of a widget item, for a specific state.

Properties

width

width?: number

The width of the badge.

height

height?: number

The height of the badge.

textStyle

textStyle: BlazeTitleStyle

The style configuration for the badge title.

text

text?: string

The text displayed in the badge.

backgroundColor

backgroundColor?: number

The background color of the badge.

backgroundImage

backgroundImage: BlazeImage

The background image of the badge.

cornerRadius

cornerRadius?: number

The corner radius of the badge.

cornerRadiusRatio

cornerRadiusRatio?: number

The corner radius ratio is a value between 0.0 and 1.0, which computes the final corner radius for the badge. Overrides corner radius property.
For example, a value of 0.5 on a 1:1 width/height badge will result in a perfect circle appearance for the badge.

borderColor

borderColor: string

The border color of the badge.

borderWidth

borderWidth?: number

The border width of the badge.

isVisible

isVisible?: boolean

A boolean value that determines whether the badge is visible.


Did this page help you?