nativescript-fresco icon indicating copy to clipboard operation
nativescript-fresco copied to clipboard

Image is not loading inside {N} + Vue project

Open xeroxstar opened this issue 6 years ago • 2 comments

Hello, i am trying to test your plugin with nativescript and vue but the image is not loading, i tried the following:

<Fresco  width="250" height="250"  imageUri="//storage/emulated/0/WhatsApp/Media/WhatsApp Images/IMG-20180616-WA0001.jpg"/>
<Fresco  width="250" height="250"  imageUri="file://storage/emulated/0/WhatsApp/Media/WhatsApp Images/IMG-20180616-WA0001.jpg"/>
<Fresco  width="250" height="250"  imageUri="file:///storage/emulated/0/WhatsApp/Media/WhatsApp Images/IMG-20180616-WA0001.jpg"/>
<Fresco  width="250" height="250"  imageUri="/storage/emulated/0/WhatsApp/Media/WhatsApp Images/IMG-20180616-WA0001.jpg"/>

whenever i put a storage url or remote url, image is not loading, can you tell me what i am doing wrong? Ths

xeroxstar avatar Jun 16 '18 14:06 xeroxstar

Hi @xeroxstar ,

Due to the current state of the community driven nativescript-vue plugin, the nativescript-fresco plugin has not been tested inside such project and it is possible that additional implementation inside the plugin may be required.

I will take a look once I have the time and let you know, in the meanwhile if you feel confident with Vue and would like to contribute to the plugin I will be happy to review any PRs you make, some getting started steps on the contribution process can be found here.

VladimirAmiorkov avatar Jun 22 '18 11:06 VladimirAmiorkov

On my ns-vue project there is no problems with fresco! @xeroxstar maybe you should register FrescoDrawee in main.js?

Vue.registerElement( 'FrescoDrawee', () => require('nativescript-fresco').FrescoDrawee );

astra1 avatar Oct 13 '18 15:10 astra1