mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-29 13:21:50 +00:00
Remove string conversion of svg bounds, allow style arrays more widely
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user