Skip to content

Commit be665c1

Browse files
committed
fix: fix Surface styling when flex set
1 parent 366e0d6 commit be665c1

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)