Skip to content

Commit

Permalink
feat: update allow to array style prop
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdanprog committed Jul 18, 2024
1 parent 26c9260 commit c728a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export default class Svg extends Shape<SvgProps> {
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.
Expand Down

0 comments on commit c728a3c

Please sign in to comment.