I need to check if screen is rendered in Bottom Tab Navigation (with Bottom Tab Bar) or in stack navigation (without tab bar). Same screen is used in both Bottom Tab Navigation and Stack Navigation.
Can I add check and render components based on type of navigation in which screen is rendered?
You can do something like:
Though it'll return 'tab' for any type of tab navigator, not just bottom tabs.