-
-
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
Svg is not transparent #1474
Comments
The same behaviour :( @Ghamza-Jd have you resolved? Could you share if so, please? |
I've the issue resolved with following styling:
|
@vitto-moz thank you for sharing, I forgot how I solved it at that time, but I remember doing something similar to your solution (tweaking the position and dimension of the component). Also I was using react-native-svg-transformer, to import and use svg files as components. |
Could you provide a simple code with reproduction of the issue? It will help us investigate the problem. Or is it already solved? |
Hello @Ghamza-Jd @vitto-moz, |
Expected Result
I'm trying to make a bottom navigation tab with a notch expected result
Problem
I have a svg which have a transparent background link to the original image
I tested it on the web and here's what it look like link to web image
but when I use it in react native, the transparent part becomes white link to react native image
then I've set the fill to red for a clear view of what's happening fill="red"
The area that should be transparent is colored in white.
The text was updated successfully, but these errors were encountered: