Skip to content

Commit

Permalink
fix: add style fallback in Surface (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukewalczak authored Jul 4, 2022
1 parent 375963c commit 7461463
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Surface.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ const Surface = ({
return elevationLevel[elevation];
};

const { margin, padding, transform, borderRadius } = StyleSheet.flatten(
const { margin, padding, transform, borderRadius } = (StyleSheet.flatten(
style
) as ViewStyle;
) || {}) as ViewStyle;

const outerLayerStyles = { margin, padding, transform, borderRadius };

Expand Down

0 comments on commit 7461463

Please sign in to comment.