Skip to content

setState problem #3

@montosajo

Description

@montosajo

Hi,I wrote a piece of code using 'new' ES6 approach ,so when I want to
....// excerpt ipip is a state
max = 22;// number of files to download
LocalImageManager.download(options, function (results) {

        console.log(results)
        var n = results.indexOf(max+"Zxm");
        if (n > 0){
           alert ( "gemacht")
           this.setState({ ipip: results });

        }

    })

...
I find this.setState is not a function .

That is logical as the code is not a RN class so I dont have a valid this and of course I dont have setState.
Any help appreciated

R
Giorgio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions