-
Notifications
You must be signed in to change notification settings - Fork 583
remote SVG image can't be rendered? #449
Comments
You need to wrap it in a Modal otherwise it wont show. |
@blazk0 thanks, I tried the following the modal shows but the remote svg is not rendered on screen still.
Where the
(For example to render a remote SVG like this one https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/Steps.svg ) |
@Xi-gofore have you tried giving the svg width and height ? Just use renderImage Prop in ImageViewer and use that Image Component. |
@blazk0 Yes, I have tried giving svg width and height like :
The svg is not shown either. The key feature for my project is not only showing the remote SVG image but also having pan-zoom feature. Do you have any suggestion about other libraries? What do you mean react native remote svg exactly? Could you please provide a link about that? |
@Xi-gofore you are just changing the image component, i dont think it will affect the pan zoom feature. here is the link : react-native-remote-svg |
@blazk0 I tried that library, yes it renders the remote svg but no pan-zoom feature, but you said you don't think it affects pan zoom feature, how can I have the pan-zoom? |
@Xi-gofore have you downloaded this lib ? this package is dependent on it |
Does this library support remote SVG image rendering & pan-zooming?
I am developing a react-native mobile app.
Mybackend returns image url like https://foo.com/bar.svg, I tried to render it with this library in the following way:
But when I run the app, it shows me blank screen, no SVG image is rendered.
The text was updated successfully, but these errors were encountered: