question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there an way to convert the Svg to png stuff

See original GitHub issue

I’ve test this component in my app to replace all the font icons to svg ones, and it’s so great that it works perfectly both on iOS and Android. but on Android, it force closed if i use the svg icon in ListView, i’think perhaps it’s not a good way because the icon will be render in every renderRow method, and it will cause perf issue(?) so i’m wondering is there an way to render the icon just once( export to a Image source for example) and then be used in the ListView as they are all the same

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
magicismightcommented, Aug 12, 2016

Try this:

svgRef.toDataURL(base64 => {
    console.log(base64);
});

This is a new feature finished recently.

0reactions
SuhairZaincommented, May 3, 2017

Hi @magicismight, When I try to use toDataURL(), I get a width and height must be > 0 exception. Could you please help me with this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG to PNG – Convert SVG files to PNG Online
Use this free online SVG to PNG converter to convert SVG files to PNG images, quickly and easily, without having to install any...
Read more >
SVG to PNG (Online & Free) - Convertio
Best way to convert your SVG to PNG file in seconds. 100% free, secure and easy to use! Convertio — advanced online tool...
Read more >
SVG to PNG Converter - CloudConvert
Convert scalable vector images to PNG with CloudConvert! Our conversion technology preserveres transparency and allows to scale lossless the vector to any ...
Read more >
SVG to PNG - online-convert.com
How to convert a SVG to a PNG file? · Choose the SVG file you want to convert · Change quality or size...
Read more >
SVG to PNG online converter - rasterize SVG images - Ezgif
Upload and convert SVG to PNG. Rasterize vector images. Set desired dimensions for the output image. Free online tool, no watermarks.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found