when I was using react-native to develop Android app, I encountered the problem of immediate execution of setTimeout. I found a lot of information on the Internet and tried to no avail, so I came to ask for help. No, no, no.
here is my code
_heightAnimate = () => {
let that = this;
setTimeout(function () {
that.exChangeToImageDetails()
}, 10000);
}
exChangeToImageDetails = () => {
this.props.exChangeSwiper(1, true)
}
//_heightAnimate()exChangeToImageDetails
is there something wrong with my writing? Is there a good solution?