@@ -10,14 +10,8 @@ type Props = PropsWithChildren<{
1010 alignVertical ?: 'start' | 'end' | 'center' | 'between' | 'around' ;
1111 flex ?: number ;
1212 gap ?: number ;
13- size ?: {
14- width ?: number | string ;
15- minWidth ?: number | string ;
16- maxWidth ?: number | string ;
17- height ?: number | string ;
18- minHeight ?: number | string ;
19- maxHeight ?: number | string ;
20- } ;
13+ width ?: number | string ;
14+ height ?: number | string ;
2115 padding ?: { top : number ; right : number ; bottom : number ; left : number } ;
2216 margin ?: { top : number ; right : number ; bottom : number ; left : number } ;
2317 background ?: string ;
@@ -28,9 +22,10 @@ export const VStack: FC<Props> = ({
2822 alignHorizontal,
2923 alignVertical,
3024 flex,
31- size,
3225 padding,
26+ width,
3327 margin,
28+ height,
3429 gap,
3530 background,
3631 ...props
@@ -43,12 +38,6 @@ export const VStack: FC<Props> = ({
4338 } ) }
4439 style = { {
4540 flex,
46- width : size ?. width ,
47- minWidth : size ?. minWidth ,
48- maxWidth : size ?. maxWidth ,
49- height : size ?. height ,
50- minHeight : size ?. minHeight ,
51- maxHeight : size ?. maxHeight ,
5241 paddingTop : padding ?. top ,
5342 paddingBottom : padding ?. bottom ,
5443 paddingLeft : padding ?. left ,
@@ -57,8 +46,10 @@ export const VStack: FC<Props> = ({
5746 marginBottom : margin ?. bottom ,
5847 marginLeft : margin ?. left ,
5948 marginRight : margin ?. right ,
60- background,
6149 gap,
50+ width,
51+ height,
52+ background,
6253 } }
6354 { ...props }
6455 />
0 commit comments