Remove string conversion of svg bounds, allow style arrays more widely

This commit is contained in:
Mikael Sand
2019-01-24 02:44:28 +02:00
parent 9fe741d02a
commit b3d29c9045
23 changed files with 136 additions and 128 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ import extractOpacity from "./extractOpacity";
import { idPattern } from "../util";
export default function extractProps(prop, ref) {
const props = { ...prop.style, ...prop };
const style = prop.style;
const props = { ...(style && style.length ? Object.assign({}, ...style) : style), ...prop };
const { opacity, onLayout, id, clipPath, mask } = props;
const styleProperties = [];