From be665c1c0394d374c81af83e5981a04117536e46 Mon Sep 17 00:00:00 2001 From: Bogusz Kaszowski Date: Wed, 19 Feb 2025 22:49:01 +0100 Subject: [PATCH] fix: fix Surface styling when flex set --- src/components/Surface.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Surface.tsx b/src/components/Surface.tsx index b8e97b465a..fc551f688d 100644 --- a/src/components/Surface.tsx +++ b/src/components/Surface.tsx @@ -202,7 +202,7 @@ const SurfaceIOS = forwardRef< ...(isElevated && getStyleForShadowLayer(elevation, 1)), ...filteredStyles, ...borderRadiusStyles, - flex: flattenedStyles.height ? 1 : undefined, + flex: flattenedStyles.height || flattenedStyles.flex ? 1 : undefined, backgroundColor: bgColor, };