DEV Community

Cover image for How can get route name of a double nested screen in React Native
stefanosalexandrou
stefanosalexandrou

Posted on

How can get route name of a double nested screen in React Native

Image description

In StackScreen*Α* if get route name I will take StackScreenΒ1 or StackScreen*Β2* depending on which page I'm on.

The same in StackScreenB1 if get route name I will take Screen*C1* or Screen*C2* or Screen*C3* depending on which page I'm on.

Is there any way when I am on StackScreen*Α* to get route name on Nested Screens of StackScreen*B1*.

Explain. I am on stage A and I want to get the route name of stage C and not B.

*For get route name of B when I am on A , alert(route.name)

Open in StackOverflow

Top comments (0)