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, };