NativeScript / nativescript-imagepicker

Imagepicker plugin supporting both single and multiple selection.
Apache License 2.0
104 stars 74 forks source link

"fromAsset() is deprecated. Use ImageSource.fromAsset()" while using ImageSource.fromAsset() #340

Open simonRNF opened 2 years ago

simonRNF commented 2 years ago

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.