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 Navigation + Different Tab Stack Lengths #55

Open
skizzo opened this issue Mar 6, 2019 · 0 comments
Open

Tab Navigation + Different Tab Stack Lengths #55

skizzo opened this issue Mar 6, 2019 · 0 comments

Comments

@skizzo
Copy link

skizzo commented Mar 6, 2019

Hi,
I'm trying to use this wonderful library to implement the Android Back Button functionality mentioned in this blog article.

Problem is, my use case is a little different, it can't automatically use the "last mounted" component I use for catching the back button event, it needs to use the one of the currently focused screen.


For example, this works:

  1. Tab A: Tab A Root
  2. Tab B: Tab B Root > Screen B <- focused, back button here, listener of Screen B called correcty
  3. Tab C: Tab C Root

While this is not working:

  1. Tab A: Tab A Root
  2. Tab B: Tab B Root > Screen B <-- focused, back button here, listener of Subscreen C is called
  3. Tab C: Tab C Root> Screen C > Subscreen C

Any ideas how this scenario could be handled? Thanks!

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

1 participant