Reputation: 3551
I'm new to nativescript-vue and trying to make use of the Image tag to show a local image SVG, the url is like this:
/app/assets/images/logo.svg
My folder structure
In my code I placed this, but sadly no image is shown:
<Image src="/app/assets/images/logo.svg" stretch="none" style="width:200; height:200;"></Image>
Upvotes: 0
Views: 282
Reputation: 21
Sometimes you have to declare it using '~' to indicate a known root folder. Try this: src='~/assets/images/logo.svg'
Upvotes: 1