Skip to main content

HStack

A view that arranges its children horizontally.

Example​

<HStack alignment="top" spacing={10}>
<Text>Hello</Text>
<Text>World</Text>
</HStack>

Props​

HStack inherits all View Modifiers as props.

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