Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab Navigator Deeplink #485

Open
momoohidayat opened this issue Sep 17, 2024 · 1 comment
Open

Tab Navigator Deeplink #485

momoohidayat opened this issue Sep 17, 2024 · 1 comment

Comments

@momoohidayat
Copy link

I have RootScreen and create a Navigator(let's say this as RootNavigator) with MainScreen as content, and then inside MainScreen, i have TabNavigator with HomeTab and ProfileTab

I also handle deeplink listener inside RootScreen.

How can i force TabNavigator to select ProfileTab when i only have RootNavigator reference in RootScreen?or maybe how can i select children of Navigator?

Structure:

  • RootScreen: Navigator(MainScreen())
    • MainScreen: TabNavigator(HomeTab(), ProfileTab())
      • HomeTab
      • ProfileTab
@Qw4z1
Copy link

Qw4z1 commented Sep 23, 2024

I don't know of any way to get a reference of nestsed navigators, so I would probably do something similar to what Rinku does.

Maybe every screen that can handle deep links listens to deep links?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants