Skip to content

Commit a3e2110

Browse files
authored
Add missing 'auto' value for overflow in StyleSheets
'auto' is a valid option distinct from all other options and currently requires to do `overflow: 'auto' as any` to avoid a Typescript error
1 parent 724fbdd commit a3e2110

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export interface FlexStyle {
8383
maxWidth?: DimensionValue | undefined;
8484
minHeight?: DimensionValue | undefined;
8585
minWidth?: DimensionValue | undefined;
86-
overflow?: 'visible' | 'hidden' | 'scroll' | undefined;
86+
overflow?: 'visible' | 'hidden' | 'scroll' | 'auto' | undefined;
8787
padding?: DimensionValue | undefined;
8888
paddingBottom?: DimensionValue | undefined;
8989
paddingEnd?: DimensionValue | undefined;

0 commit comments

Comments
 (0)