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:
Tab A: Tab A Root
Tab B: Tab B Root > Screen B <- focused, back button here, listener of Screen B called correcty
Tab C: Tab C Root
While this is not working:
Tab A: Tab A Root
Tab B: Tab B Root > Screen B <-- focused, back button here, listener of Subscreen C is called
Tab C: Tab C Root> Screen C > Subscreen C
Any ideas how this scenario could be handled? Thanks!
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:
Tab A:Tab A RootTab B:Tab B Root>Screen B<- focused, back button here, listener of Screen B called correctyTab C:Tab C RootWhile this is not working:
Tab A:Tab A RootTab B:Tab B Root>Screen B<-- focused, back button here, listener of Subscreen C is calledTab C:Tab C Root>Screen C>Subscreen CAny ideas how this scenario could be handled? Thanks!