mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 01:00:43 +00:00
Fix memory issue with ClipPath
Fix memory issue with ClipPath.
This commit is contained in:
+1
-4
@@ -46,10 +46,7 @@ const NodeAttributes = {
|
||||
},
|
||||
opacity: true,
|
||||
clipRule: true,
|
||||
clipPathRef: true,
|
||||
clipPath: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
clipPath: true,
|
||||
propList: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
|
||||
@@ -16,9 +16,7 @@ export default function (props) {
|
||||
let matched = clipPath.match(clipReg);
|
||||
|
||||
if (matched) {
|
||||
clippingProps.clipPathRef = matched[1];
|
||||
} else {
|
||||
clippingProps.clipPath = new SerializablePath(clipPath).toJSON();
|
||||
clippingProps.clipPath = matched[1];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user