nativescript-imagepicker
nativescript-imagepicker copied to clipboard
"fromAsset() is deprecated. Use ImageSource.fromAsset()" while using ImageSource.fromAsset()
Hello :) I am having some issue regarding usage on Nativescript vue.
Inside my component, on image selection I use :
ImageSource.fromAsset(selection[0]).then( res => { this.imageSrc = data:image/jpeg;base64,${res.toBase64String("jpeg")}; this.$emit('update', this.imageSrc); } );
But it seems to get me some log in the console "fromAsset() is deprecated. Use ImageSource.fromAsset()"
Is there something wrong with my code ? It seems to work just fine.