AppState listener continues to work even though I remove it – React native
I added a listener to screen A as you can see below. But when I navigate to screen B, I see that this listener is still running. How can I solve this problem? import React, { useEffect } from "react"…