-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels