mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-29 21:25:00 +00:00
Fix memory issue with ClipPath
Fix memory issue with ClipPath.
This commit is contained in:
@@ -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