-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"mask-type" is not supported in <mask> element. #1790
Comments
Any updates on this issue? |
Seems, they have fixed it in v0.32.0 resvg supports the mask-type attribute as of v0.32.0. linebender/resvg#582 |
Need this! |
Upgrade to the version v0.32.0 |
Im not sure i follow, which library should be updated to v0.32.0? react-native-svg is currently on 13.11.0 🤷♂️ |
Refer this linebender/resvg#582 |
Maybe i'm silly, but i don't see how that is relevant in this post. Status is, still, that react-native-svg doesn't support mask-type/maskType, right? |
Up! Still no update on that ? |
the same here |
Having this same issue |
Facing this issue right now. |
Any Updates? |
Hello, |
# Summary "mask-type: alpha" is not supported. resolve issue: #1790 ## Explanation svg example: ``` <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="none"> <g clip-path="url(#clip0_8_3)"> <rect width="100" height="100" fill="white"/> <mask id="mask0_8_3" mask-type="alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="100" height="100"> <circle cx="50" cy="50" r="50" fill="#000000"/> </mask> <g mask="url(#mask0_8_3)"> <rect x="-26" y="-78" width="209" height="263" fill="#252E74"/> </g> </g> <defs> <clipPath id="clip0_8_3"> <rect width="100" height="100" fill="white"/> </clipPath> </defs> </svg> ``` Current behavior: ![image](https://github.com/software-mansion/react-native-svg/assets/17138397/2dca6f46-fe8f-48f3-80f9-799563911e8b) Expected behavior: ![image](https://github.com/software-mansion/react-native-svg/assets/17138397/fb49cf0b-d677-491f-8215-9c9b1d69080f) ## Compatibility | OS | Implemented | | ------- | :---------: | | iOS | ✅ | | Android | ✅ | ## Checklist <!-- Check completed item, when applicable, via: [X] --> - [x] I have tested this on a device and a simulator - [ ] I added documentation in `README.md` - [x] I updated the typed files (typescript) - [ ] I added a test for the API in the `__tests__` folder --------- Co-authored-by: Sergey <[email protected]> Co-authored-by: Jakub Grzywacz <[email protected]>
Hi, |
The problem is explained here very well. gregberge/svgr#336
The same should be addressed in this library as well.
The text was updated successfully, but these errors were encountered: