How does react native intercept global navigation

the demand is like this, the user clicks my order, my fans, my message, if the user is not logged in, go to the landing page, otherwise you can go directly to the corresponding page. The current practice is to make a judgment on whether the user is logged in or not when navigator is doing push. I feel a little troublesome. Is there any good way? How does everyone do it?

Feb.28,2021

I also want to know, hey, have you solved it

Menu