Stop infinite loop in react native useEffect
I am calling one function through setInterval but function go to infinite loop and my applicaiton get stuck. It's happen it on android, Could someone please help me how to resolve this issue. Thanks useEffect(() => { const interval =…