react-native-svg-transformer icon indicating copy to clipboard operation
react-native-svg-transformer copied to clipboard

"@fill" is not a valid color or brush

Open ranshine opened this issue 3 years ago • 1 comments

I am using this library to show svg images. I am passing color to fill prop. In svg image i added @fill to fill, but it is not working and showing warning("@fill" is not a valid color or brush)

<svg width="306" height="167" viewBox="0 0 306 167" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M242 125C247.525 125 252 120.525 252 115C252 109.475 247.525 105 242 105C236.475 105 232 109.475 232 115C232 120.525 236.475 125 242 125ZM242 130C235.325 130 222 133.35 222 140V145H262V140C262 133.35 248.675 130 242 130Z" fill="@fill"/>

ranshine avatar Feb 21 '22 09:02 ranshine

@ranshine if you want to replace the fill of the path, you can just a color or I think that none should also work as a value.

kristerkari avatar Feb 23 '22 13:02 kristerkari