Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Latest commit

 

History

History
61 lines (47 loc) · 1.46 KB

expanded.md

File metadata and controls

61 lines (47 loc) · 1.46 KB
title weight description
Expanded
338
You will find here the description of the Expanded function and its attributes details

What is it?

Expanded is a function to help you organize the layout of your view. It makes the component passed as parameter expand its size to all the available space. This is achieved by setting width to 100%, height to 100%, alignSelf to STRETCH and grow to 1.0.

See how the structure is represented:

Attribute Type Required Definition
self StyleComponent Component to receive the style.

How to use it?

{{< tabs id="T145" >}} {{% tab name="JSON" %}}

{{% playground file="expanded.json" language="pt" %}} {{% /tab %}}

{{% tab name="Kotlin DSL" %}}

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

{{% /tab %}} {{< /tabs >}}