Skip to content

Commit

Permalink
Support gap as LayoutProp (#3923)
Browse files Browse the repository at this point in the history
Fixes #3822
  • Loading branch information
Ryanseanlee authored Feb 21, 2025
1 parent e803382 commit a917f91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/HoistProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export interface LayoutProps {
flexGrow?: string | number;
flexShrink?: string | number;
flexWrap?: Property.FlexWrap;
gap?: string | number;

alignItems?: string;
alignSelf?: string;
Expand Down
3 changes: 2 additions & 1 deletion utils/react/LayoutPropUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ const dimKeys = [
'maxHeight',
'width',
'minWidth',
'maxWidth'
'maxWidth',
'gap'
];
const flexKeys = ['flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap'];
const alignKeys = ['alignItems', 'alignSelf', 'alignContent', 'justifyContent'];
Expand Down

0 comments on commit a917f91

Please sign in to comment.