Skip to content

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

Open
@simonRNF

Description

@simonRNF

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions