Skip to main content

VStack

A view that arranges its children vertically.

Example​

<VStack alignment="leading" spacing={10}>
<Text>Hello</Text>
<Text>World</Text>
</VStack>

Props​

VStack inherits all View Modifiers as props.

propdescriptiontyperequireddefault
spacingAmount of space between stack itemsnumberno0
alignmentThe alignment guide'leading' | 'trailing' | 'center'no'center'
childrenStack itemsReactNodenonull