O Center
é uma função para ajudá-lo a organizar o layout de sua visualização. Ele centraliza o componente passado como parâmetro definindo justifyContent
, alignItems
, alignSelf
e alignContent
como CENTER
.
A sua estrutura é representada como mostrado abaixo:
Atributo | Tipo | Obrigatório | Definição |
---|---|---|---|
self | StyleComponent | ✓ | Componente para receber o estilo. |
Center(
self = Text(text = "simple text")
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.