A container for other components that allows them to be stacked horizontally or vertically. When building complex UIs, this will be your primary building block.
<Screen name="Home">
<Stack direction="horizontal" paddingHorizontal={'ExtraExtraLarge'}>
<Button title="Hello" />
<Button title="Hello" />
</Stack>
</Screen>;
The direction of the stack.
The alignment of the children along the cross axis.
The vertical padding around the stack.
The horizontal padding around the stack.
The spacing between each child in the stack.
Whether the children should be stretched to fill the cross axis.
The flex value for the stack.
Wrap behavior for the children of the stack.
'HalfPoint' | 'ExtraSmall' | 'Small' | 'Medium' | 'Large' | 'ExtraLarge'
'HalfPoint' | 'ExtraSmall' | 'Small' | 'Medium' | 'Large' | 'ExtraLarge' | 'ExtraExtraLarge'
0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 16