mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 17:15:04 +00:00
Restore support for array of styles on Svg root.
This commit is contained in:
+1
-1
@@ -71,7 +71,7 @@ class Svg extends Shape {
|
||||
children,
|
||||
...props
|
||||
} = this.props;
|
||||
const stylesAndProps = { ...style, ...props };
|
||||
const stylesAndProps = { ...(style && style.length ? Object.assign({}, ...style) : style), ...props };
|
||||
const { color, width, height } = stylesAndProps;
|
||||
|
||||
let dimensions;
|
||||
|
||||
Reference in New Issue
Block a user