GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeObjectPositioning - React Native

BlazeObjectPositioning defines the horizontal and vertical position of an object within a container. Use it to position UI elements such as titles and indicators inside a widget item.

Properties

xPosition

xPosition?: BlazeObjectXPosition

The horizontal position of the object. See BlazeObjectXPosition below.

yPosition

yPosition?: BlazeObjectYPosition

The vertical position of the object. See BlazeObjectYPosition below.

BlazeObjectXPosition

The BlazeObjectXPosition type defines the horizontal position of an object relative to a sibling object's leading, trailing, or center axis.

Cases

ValueDescription
LeadingToLeadingAligns the leading edge of the object to the leading edge of the second element.
LeadingToTrailingAligns the leading edge of the object to the trailing edge of the second element.
TrailingToLeadingAligns the trailing edge of the object to the leading edge of the second element.
TrailingToTrailingAligns the trailing edge of the object to the trailing edge of the second element.
CenterXAligns the center of the object with the center of the second element along the x-axis.
CenterToLeadingAligns the center of the object to the leading edge of the second element.
CenterToTrailingAligns the center of the object to the trailing edge of the second element.

BlazeObjectYPosition

The BlazeObjectYPosition type defines the vertical position of an object relative to a sibling object's top, bottom, or center axis.

Cases

ValueDescription
BottomToTopAligns the bottom edge of the object to the top edge of the second element.
TopToTopAligns the top edge of the object to the top edge of the second element.
BottomToBottomAligns the bottom edge of the object to the bottom edge of the second element.
TopToBottomAligns the top edge of the object to the bottom edge of the second element.
CenterToTopAligns the center of the object to the top edge of the second element.
CenterYAligns the center of the object with the center of the second element along the y-axis.
CenterToBottomAligns the center of the object to the bottom edge of the second element.

Did this page help you?