I am just learning to react native and I am trying to record video and show remaining video duration in the screen.
I am using the below code:
setInterval (() => { this.setState ({progress: progress * 2}); }, 1000); var video = await this.camera.recordAsync ({ mute: true, quality: '480p', maxDuration: this.state.max_duration, });
However video is recording perfectly fine, but setiInterval has stopped worked. How to run setInterval in a async funtion
? Please help..