You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wanting to use clipPath as a css property, not a native svg one (https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path) however it looks like react-native-svg is intercepting this prop. Interestingly, I don't run into any errors on web but in the simulator, I get:
Invalid `clipPath` prop, expected a clipPath like "#id", but got: "inset(0, 0, 0, 0)"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
@halfmatthalfcat did you ever get a resolution to this? We were unable to get the clip path to work via ID on the web, but inlining it does not appear to work on mobile...
Hi, react-native-svg does not support applying CSS properties directly. If you want to apply a clip on an element (e.g., a Path), you should use the ClipPath component and pass its id as the clipPath prop to the target element. Here's an example:
Question
I'm wanting to use
clipPath
as a css property, not a native svg one (https://developer.mozilla.org/en-US/docs/Web/CSS/clip-path) however it looks likereact-native-svg
is intercepting this prop. Interestingly, I don't run into any errors on web but in the simulator, I get:I'm passing the clipPath property as so:
Is there anyway to use this without running into the warning?
The text was updated successfully, but these errors were encountered: