Center

You will find here the description of the Center function and its attributes details

What is it?

Center is a function to help you organize the layout of your view. It centers the component passed as parameter by setting justifyContent, alignItems, alignSelf and alignContent to CENTER.

See how the structure is represented:

AttributeTypeRequiredDefinition
selfStyleComponentComponent to receive the style.

How to use it?

Center(
    self = Text(text = "simple text")
)