npx gluestack-ui add gridimport { Grid, GridItem } from '@/components/ui/grid';
export default () => (
<Grid>
<GridItem />
</Grid>
);
Renders a <div /> on web and a View on native.
| Platform | Output |
|---|---|
Web | <div /> |
Native | <View /> |
| Prop | Type | Default | Description |
|---|---|---|---|
_extra | object | - | Accepts grid-cols-* className. Value for * can range from 1 to 12. Default value is grid-cols-12. |
Renders a <div /> on web and a View on native.
| Platform | Output |
|---|---|
Web | <div /> |
Native | <View /> |
| Prop | Type | Default | Description |
|---|---|---|---|
_extra | object | - | Accepts col-span-* className. Value for * can range from 1 to 12. Default value is col-span-1. |