npx gluestack-ui add vstackimport { VStack } from '@/components/ui/vstack';
export default () => <VStack />;
Renders a <div /> on web and a View on native.
| Platform | Output |
|---|---|
Web | <div /> |
Native | <View /> |
| Prop | Type | Default | Description |
|---|---|---|---|
space | string | - | It sets the space between children. By default there is no space between the VStack items. |
reversed | boolean | false | When true, it places the VStack items in reverse direction. |