Skip to main content

Stack.H

Stack.H component render a horizontal stack 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
justifystringAligns children horizontally.
alignstring'center'Aligns children vertically.
fWrapstring'wrap'Defines if children wrap.
gapnumber10Space between children.
styleViewStyleCustom styles for the HStack container.