nativescript-fresco
nativescript-fresco copied to clipboard
Image is not loading inside {N} + Vue project
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
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.
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 );