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

Display multiple popups? #8

Open
Strate opened this issue Oct 3, 2018 · 7 comments
Open

Display multiple popups? #8

Strate opened this issue Oct 3, 2018 · 7 comments
Labels
enhancement New feature or request

Comments

@Strate
Copy link

Strate commented Oct 3, 2018

Hey!
Just found this awesome library, thank you for this!

Is there any way to display more than 1 notification popup?

@carsonwah
Copy link
Owner

carsonwah commented Oct 3, 2018

Thank you @Strate !

What do you mean by displaying more than 1 popup?

Currently if you .show() while there is still a popup displaying, the current one will be discarded immediately.

Do you want multiple popups to be stacked onto a single one, or just one-by-one filling up the screen?

@Strate
Copy link
Author

Strate commented Oct 3, 2018

@carsonwah I want to display, for example, maximum 3 notifications, and next notification should hide oldest one.

@carsonwah
Copy link
Owner

So, you dispatch 3 notifications. It goes like:

show 1st -> few seconds -> hide 1st, show 2nd -> few seconds -> hide 2nd, show 3rd -> ...

Something like this?

@Strate
Copy link
Author

Strate commented Oct 4, 2018

show 1st - visible list: [1st]
show 2nd -> visible list: [2nd, 1st]
show 3rd -> visible list: [3rd, 2nd, 1st]
show 4th -> visible list: [4th, 3rd, 2nd] (1st hidden on that case)

And all of them hides after some duration

@carsonwah
Copy link
Owner

I see. Interesting. This is not a standard push notification approach on native platforms.

The hardest part of this i guess would be handling the gestures from user.

I will take it into consideration. Meanwhile, if you can help on this, you may open a pull request. Thanks a lot.

@carsonwah carsonwah added the enhancement New feature or request label Jan 2, 2019
@ManigandanRaamanathan
Copy link

@carsonwah is there any way of implementing this while disabling the gesture?

@carsonwah
Copy link
Owner

@ManigandanRaamanathan Should be possible. Better to write a new component for this and let user choose. (though I think disabling the gesture will be a bit weird)

Any PR is welcome.

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

No branches or pull requests

3 participants