-
Notifications
You must be signed in to change notification settings - Fork 123
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
Image as a mask for another image not rendering on Android #78
Comments
api 29? |
Yes |
Yup me too , i dont know why exactly is this 😐 |
@Only-IceSoul can you give me how to set it up ? |
|
for me it's work with resizeMode='cover' and 'repeat' and doesn't work with other resizeMode ... |
This actually fixed the issue for us of having the image not display at all. Now it does display on Android, but it is incredibly slow to load, sometimes taking up to 10 seconds. This is with API 29. |
any update on this? |
We had a similar issue on our project, and managed to get it to work by setting a color to the image/shape within maskElement (previously it was transparent since we didn't think the color matters to a mask) |
You mean apply a style props like backgroundColor or edit the transparent background of the image? Is it work as .png images? I have apply backgroundColor within image in maskElement but it's just showing rectangle mask not the one I expect |
We are using a SVG for the mask, so there's a |
So basically it's not Image component or SVG Images Component but more like SVG component like path, rectangle, etc. Okay. |
Bug report
Summary
Trying to apply some image shape masking using .png image. Everything works as expected on iOS, but android doesn't render anything, just empty. If i try to replace image mask with text, android works as expected, problem exist if use image as a mask element.
Image used for masking:
And result:
Environment info
react-native info
output:Library version: ^0.1.10
Reproducible sample code
The text was updated successfully, but these errors were encountered: