Make push to view after several seconds


I wanna make redirect to another page when I got an error from backend. But I want that the redirection to another page is made after several seconds when an error occured.
Is it possible to say navCtrll.push(AnotherPage) after several secons?

You just need to put the navctrl into the setTimeout function like this.

setTimeout(() => {
}, 1000);