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
I use SvgUri component from react-native-svg and it works perfectly fine but won't show some svg urls uploaded to aws in my case the algo crypto coin svg .
You'll need to run it on a real device since the component doesn't work at all in React Native Web
Snack only supports 13.4.0 of react-native-svg which doesn't even attempt to render the broken SVGs – the latest version 13.9.0 manages a bit better but the output is still wrong
I experienced the same issue as you. The problem is not with the package; it's with your SVG icon. The 'fill' attribute is missing inside the 'path' element. By default, it is black, but if it's not explicitly set, the package cannot display the icon. Just add fill="#000000" inside the 'path' tag in your icon, or set property fill in <SvgUri fill="#000000" ... />, and it should work.
Bug
I use
SvgUri
component fromreact-native-svg
and it works perfectly fine but won't show some svg urls uploaded toaws
in my case thealgo
crypto coin svg .The url for the not working
algo
svg
is exactly like othersvg
urls :https://hollaex-resources.s3.ap-southeast-1.amazonaws.com/icons/algo.svg
sand
svg logo url which is working fine :https://hollaex-resources.s3.ap-southeast-1.amazonaws.com/icons/sand.svg
Environment info
React native info output:
Library version: ^12.1.0
Describe what you expected to happen:
I expected
SvgUri
component would show thealgo
svg
url just like othersvg
urls .The text was updated successfully, but these errors were encountered: