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 alignment of the children along the cross axis.
The direction of the stack.
The flex value for the stack.
Whether the children should be stretched to fill the cross axis.
Wrap behavior for the children of the stack.
The horizontal padding around the stack.
The vertical padding around the stack.
The spacing between each child in the stack.
'HalfPoint' | 'ExtraSmall' | 'Small' | 'Medium' | 'Large' | 'ExtraLarge' | 'ExtraExtraLarge'
'HalfPoint' | 'ExtraSmall' | 'Small' | 'Medium' | 'Large' | 'ExtraLarge'
0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 13 | 16