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
Using fillOpacity in combination with fill="currentColor" does not work on iOS and Android. On web it shows expected behaviour.
<Svgwidth="56"height="56"viewBox="0 0 56 56"color="red">{/* ✅ Works: renders at 20% opacity */}<Rectx="25"y="25"width="20"height="20"rx="4"fill="red"fillOpacity="0.2"/>{/* ❌ Expected: renders at 20% opacity; Actual: renders at full opacity */}<Rectwidth="20"height="20"rx="4"fill="currentColor"fillOpacity="0.2"/>{/* ✅ Works: renders at zero opacity */}<Rectwidth="20"height="20"rx="4"fill="currentColor"fillOpacity="0"/></Svg>
Environment info
Expo 45 (RN 0.68.2), same on RN bare 0.68.2
Library version: 12.3.0
Short, Self Contained, Correct (Compilable), Example
Bug
Using
fillOpacity
in combination withfill="currentColor"
does not work on iOS and Android. On web it shows expected behaviour.Environment info
Expo 45 (RN 0.68.2), same on RN bare 0.68.2
Library version: 12.3.0
Short, Self Contained, Correct (Compilable), Example
https://snack.expo.dev/@robrechtme/bug-react-native-svg-currentcolor
The text was updated successfully, but these errors were encountered: