GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeMomentsPlayerCtaStyle - React Native

The BlazeMomentsPlayerCtaStyle class represents the style configuration for the Call to Action (CTA) buttons in a moment.

Properties

cornerRadius

cornerRadius?: number

The corner radius of the CTA buttons.

textSize

textSize?: number

The size of the CTA text.

font

font?: BlazeFont

The BlazeFont instance of the CTA text font.

width

width?: number

The width of the CTA.

If not given (i.e., null), width of the CTA will act as match_parent.

The default value is null.

height

height?: number

The height of the CTA.

If not given (i.e., null), height of the CTA will act as wrap_content.

The default value is null.

icon

icon?: BlazeMomentsCtaIcon

The icon inside the CTA.

Read more here.

layoutPositioning

layoutPositioning?: BlazeMomentsPlayerCTAPositioning

The layout positioning of the CTA.

Read more here.

horizontalAlignment

horizontalAlignment?: BlazeMomentsPlayerCTAHorizontalAlignment

The horizontal alignment of the CTA.

Read more here.

borderColor

borderColor?: string

The fallback border color of the CTA, as a hex string.

It applies only when the CTA coming from the CMS has no border color of its own — the CMS value always wins when present.

borderWidth

borderWidth?: number

The fallback border width of the CTA, in points on iOS and dp on Android.

It applies only when the CTA coming from the CMS has no border width — the CMS value always wins when present.

When neither the CMS nor this style supplies a border, the CTA is drawn without one.

Initialization

interface BlazeMomentsPlayerCtaStyle {
  cornerRadius?: number;
  textSize?: number;
  font?: BlazeFont;
  width?: number;
  height?: number;
  layoutPositioning?: BlazeMomentsPlayerCTAPositioning;
  horizontalAlignment?: BlazeMomentsPlayerCTAHorizontalAlignment;
  icon?: BlazeMomentsPlayerCtaIconStyle
  borderColor?: string;
  borderWidth?: number;
}

Did this page help you?