Skip to main content
Version: Next

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 'rn-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
justifystringflex-startIt change the justify content property of the Stack.H
alignstringcenterIt align the content of the Stack.H
fWrapstringwrapIt change the wrap property of the Stack.H
gapnumber10It sets the gap between the children's
containerStyleobjectIt helps in to change the styles of the Stack.H