From c728a3c9893fc4b77732bb58e97ca210457d827a Mon Sep 17 00:00:00 2001 From: bohdanprog Date: Thu, 18 Jul 2024 11:10:46 +0200 Subject: [PATCH] feat: update allow to array style prop --- src/elements/Svg.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elements/Svg.tsx b/src/elements/Svg.tsx index 6257ad1c9..9ddf20a91 100644 --- a/src/elements/Svg.tsx +++ b/src/elements/Svg.tsx @@ -183,7 +183,7 @@ export default class Svg extends Shape { props.onLayout = onLayout; } - const gStyle = Object.assign({}, StyleSheet.flatten(style ?? {})); + const gStyle = StyleSheet.flatten(style); // if transform prop is of RN style's kind, we want `SvgView` to handle it // since it can be done here. Otherwise, if transform is of `svg` kind, e.g. string, // we want G element to parse it since `Svg` does not include parsing of those custom transforms.