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

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 ScreenC1 or ScreenC2 or ScreenC3 depending on which page I’m on.

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

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