Skip to content

Commit 3c75257

Browse files
authored
fix: fix Surface styling when flex set (#4634)
1 parent 2559198 commit 3c75257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Surface.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const SurfaceIOS = forwardRef<
202202
...(isElevated && getStyleForShadowLayer(elevation, 1)),
203203
...filteredStyles,
204204
...borderRadiusStyles,
205-
flex: flattenedStyles.height ? 1 : undefined,
205+
flex: flattenedStyles.height || flattenedStyles.flex ? 1 : undefined,
206206
backgroundColor: bgColor,
207207
};
208208

0 commit comments

Comments
 (0)