mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-08 09:10:44 +00:00
Remove path data usage in clipPath
Remove path data usage in clipPath. Use clipPath in SVG way
This commit is contained in:
+1
-4
@@ -58,10 +58,7 @@ const NodeAttributes = {
|
||||
},
|
||||
opacity: true,
|
||||
clipRule: true,
|
||||
clipPathRef: true,
|
||||
clipPath: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
clipPath: true,
|
||||
propList: {
|
||||
diff: arrayDiffer
|
||||
},
|
||||
|
||||
@@ -15,9 +15,9 @@ export default function (props) {
|
||||
let matched = clipPath.match(clipReg);
|
||||
|
||||
if (matched) {
|
||||
clippingProps.clipPathRef = matched[1];
|
||||
clippingProps.clipPath = matched[1];
|
||||
} else {
|
||||
clippingProps.clipPath = clipPath;
|
||||
console.warn('Invalid `clipPath` prop, expected a clipPath like `"#id"`, but got: "' + clipPath + '"');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user