Skip to main content

Stack.H

Stack.H component render a horizontal stack layout that can easily be re-style by using props.

Example banner

Implementation code

import { Stack, StyledView } from '@nexara/nativeflow';

const Component = () => {
return (
<Stack.H>
<StyledView height={100} width={100} bg='red'></StyledView>
<StyledView height={100} width={100} bg='red'></StyledView>
<StyledView height={100} width={100} bg='red'></StyledView>
<StyledView height={100} width={100} bg='red'></StyledView>
<StyledView height={100} width={100} bg='red'></StyledView>
</Stack.H>
);
}
export default Component;

Props

PropTypeDefaultDescription
alignstring'center'Specifies the vertical alignment of child elements.
fWrapstring'wrap'Determines whether child elements should wrap.
gapnumber10Sets the spacing between child elements.
containerStyleStyleProp<ViewStyle>Allows custom styling for the HStack container.