Skip to content

Commit 2b3aa6a

Browse files
committed
Fix Box types
1 parent 3649163 commit 2b3aa6a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Box/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ type ExtractAlignX<T> = T extends 'column' | 'column-reverse'
2323
type ExtractAlignY<T> = T extends 'column' | 'column-reverse' ? Exclude<AxisY, 'stretch'> : AxisY
2424

2525
type SpacingTuple = [keyof ViewStyle, ResponsiveProp<number> | undefined]
26-
type ResponsiveProps<T> = { [P in keyof T]: ResponsiveProp<number> }
26+
type BoxResponsiveProps<T> = { [P in keyof T]: ResponsiveProp<number> }
2727

28-
type StyleProps = ResponsiveProps<
28+
type StyleProps = BoxResponsiveProps<
2929
Pick<
3030
ViewStyle,
3131
| 'padding'
@@ -47,7 +47,7 @@ type StyleProps = ResponsiveProps<
4747

4848
export interface Props<T extends Direction> extends StyleProps, ViewProps {
4949
children?: React.ReactNode
50-
flex?: ResponsiveProps<Flex>
50+
flex?: ResponsiveProp<Flex>
5151
direction?: ResponsiveProp<T>
5252
paddingX?: ResponsiveProp<number>
5353
paddingY?: ResponsiveProp<number>

0 commit comments

Comments
 (0)