reactjs – Is there a simple way to prevent home button to go back to the top of the stack on a certain screen?
The question pretty much summarizes all.
I have several screens stacked under the “Home” button. In one of these screens, I would like to prevent accidental touch to the home button to take the user to the top of the stack (because they lose progress otherwise).
So for the page in question, I would want home button to require confirmation (or to do nothing). For all other pages, I would like the behavior to be standard behavior.
Is there a simple way to do this? If it is too convoluted of a solution or there is no solution at all, please comment under the question.
Read more here: Source link
