how to cancel all setTimeout and promises when move back from view react native code example
Example 1: set delay react native
setTimeout(() => {
this.yourFunction();
}, 3000);
Example 2: react native settimeout
setTimeout(() => {this.setState({timePassed: true})}, 1000)