Skip to main content

Stack.V

Stack.V component render a vertical stack that can easily be re-style by using props.

Implementation code

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

const Component = () => {
return (
<Stack.V>
<View style={{height:100, width:100, backgroundColor: 'red'}}></View>
<View style={{height:100, width:100, backgroundColor: 'red'}}></View>
<View style={{height:100, width:100, backgroundColor: 'red'}}></View>
<View style={{height:100, width:100, backgroundColor: 'red'}}></View>
<View style={{height:100, width:100, backgroundColor: 'red'}}></View>
</Stack.V>
);
}
export default Component;

Props

PropTypeDefaultDescription
alignstringcenterAligns children vertically within the VStack.
gapnumber10Sets the space between child elements.
styleViewStyleCustom styles for the VStack container.