I have a problem when I want use images SVG in NativeScript with Angular. I did the typical where I used de tag: <Image src="res://image.svg"></Image>
and <Image src="~/images/image.svg"></Image>
. In NativeScript not show images in format SVG natively, the solution is use a plugin of Nativescript https://market.nativescript.org/plugins/nativescript-svg , but this plug-in does not currently work ( https://github.com/peoplewareDo/nativescript-svg/issues/24 ). I only have images in SVG, I don't have others format of images. What do I to resolve this problem?
After checking the provided issue on nativescript-svg
GitHub, I do see some comments saying that bradmartin fork is working for Android. Have you tried it?
Also, on the official NativeScript repo, there is a reopened issue regarding svg support . So I would recommend saving your svgs files as png/jpeg
or any other supported format in the meantime.
Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.