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

Screen as popup or transparent packground #404

Open
Hightower87 opened this issue Apr 30, 2024 · 2 comments
Open

Screen as popup or transparent packground #404

Hightower87 opened this issue Apr 30, 2024 · 2 comments

Comments

@Hightower87
Copy link

Hi, is there any way to show a second screen onto first screen while keeping the first screen on the background like a popup behaviour?

I would like to show second screen with background transparent, having a popup, and still want to see the first screen.
I know this can be achieved with a popup composable, but I would like to use navigator to push and pop and behave like a normal screen.

@Syer10
Copy link
Contributor

Syer10 commented Apr 30, 2024

Its possible to use Voyager to do this, its not directly supported currently. You'll need to use the Navigator content parameter and create a alternative to CurrentScreen, something like CurrentNotDialogScreen and add a if statement after that for latest dialog screen.

@Hightower87
Copy link
Author

But this time popup will be implemented in the current compose context, and I will not be able to do such thing as: "navigator.push(PopupScene())".
Thanks for the explanation.

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