Skip to main content
Version: Next

Stack.V

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

Implementation code

import { Stack } from 'rn-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
alignstringcenterIt align the content of the Stack.V
gapnumber10It sets the gap between the children's
containerStyleobjectIt helps in to change the styles of the Stack.V