mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 15:14:18 +00:00
Remove path data usage in clipPath
Remove path data usage in clipPath. Use clipPath in SVG way
This commit is contained in:
@@ -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