Nativescript: While I am using .svg images I am getting error as 'BUILD FAILED'. is nativescript don't have support for .svg files or any alternative we have for using the same ??

Created on 3 Aug 2017  Â·  5Comments  Â·  Source: NativeScript/NativeScript

question

Most helpful comment

I think you ment tns plugin add <tgz_path>. I installed your plugin, but svg is not displayed on android (dont know about iOS), I am using nativescript.svg located in demo-angular\app\images folder

All 5 comments

Hi @sagar1911,
The Image component does not support SVG format, however, for this case, you could use nativescript-SVG plugin, which provides this functionality.
Bear in mind that the latest version is not published correctly from the auhor and to be able to use it I created a custom tgz file, which could be used in your project. To install the tgz file you could use tns plugin add <tgz_path> For further info how to use it, you could use the examples from the plugins repository. Something more, to be able to use the attached file you need to remove the zip extension from the app name
nativescript-svg-1.3.4.tgz.zip

Thanks. I will try

Rodda SagarUX Engineer
M +91 9502315034
E [email protected]

On Thu, Aug 3, 2017 at 3:43 PM, Nikolay Tsonev notifications@github.com
wrote:

Hi @sagar1911 https://github.com/sagar1911,
The Image component does not support SVG format, however, for this case,
you could use nativescript-SVG plugin, which provides this functionality.
Bear in mind that the latest version is not published correctly from the
auhor and to be able to use it I created a custom tgz file, which could be
used in your project. To install the tgz file you could use tgz plugin
add For further info how to use it, you could use the examples
from the plugins repository
https://github.com/peoplewareDo/nativescript-svg. Something more, to be
able to use the attached file you need to remove the zip extension from the
app name
nativescript-svg-1.3.4.tgz.zip
https://github.com/NativeScript/NativeScript/files/1196790/nativescript-svg-1.3.4.tgz.zip

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NativeScript/NativeScript/issues/4649#issuecomment-319928396,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdFDnChWd7EBNUdkMhOrdc5SgmEpRt0Qks5sUZ1ngaJpZM4Or_Yv
.

I think you ment tns plugin add <tgz_path>. I installed your plugin, but svg is not displayed on android (dont know about iOS), I am using nativescript.svg located in demo-angular\app\images folder

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vtisnado picture vtisnado  Â·  3Comments

Leo-lay picture Leo-lay  Â·  3Comments

rLoka picture rLoka  Â·  3Comments

pocesar picture pocesar  Â·  3Comments

valentinstoychev picture valentinstoychev  Â·  3Comments