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
addFor 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
Have you tried a webview?
https://docs.nativescript.org/ui/ns-ui-widgets/web-view#source-load
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.
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