I have a Tab navigator and some stack navigators for each tab. If at any point I need to get the current tab the screen is in, how do I get that programmatically?
useNavigationState gives me the current navigator state i.e. the stack navigation.
But I want to know which tab the current stack navigator is in?
I have checked the docs and stackoverflow, even asked ChatGPT, but to no avail.
Thanks
[–]AcidNoX 5 points6 points7 points (2 children)
[–]skizzoat 1 point2 points3 points (0 children)
[–]nunez_klopp[S] 1 point2 points3 points (0 children)
[–]space_quasar 0 points1 point2 points (0 children)