Skip to content

Notification is only partially shown for nested navigators #29

@gnomezgrave

Description

@gnomezgrave

I'm using this library, which works well for most cases. Everything works as expected if the show() is called inside the root navigator.
However, if the show() is triggered inside a nested navigator, the notification is only partially shown (see the attachment).

Simulator Screenshot - iPhone 14 Pro - 2023-10-15 at 20 01 46

What do I mean by "nested navigator"?
I have a window which has a bottom navigation bar which has a set of navigators (and keys). Some UIs are only pushed to these navigators. When the show() is called from a UI that is part of a nested navigator, the notification isn't shown properly.

Any idea how to get this fixed?

EDIT:
I was able to fix this using the global navigator key and passing its context to the show() function.
Not sure if this is the best way to do this. Regardless, I think it's worth mentioning in the docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions