Skip to content

Allow inverting the swipe gesture direction for dismiss #106

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

Open
henrymgarrett opened this issue Feb 28, 2025 · 1 comment
Open

Allow inverting the swipe gesture direction for dismiss #106

henrymgarrett opened this issue Feb 28, 2025 · 1 comment

Comments

@henrymgarrett
Copy link

When overriding the animations to allow for toasts to enter from the bottom of the screen, we cannot use the swipeEnabled prop. When it is turned on, the swiping is still implemented as if the toast is on the top of the screen, so swiping up dismisses the toast (not down, as would intuitively make sense). Can we have the ability to either switch or override the swipe gesture direction?

Screen.Recording.2025-02-27.at.9.23.09.PM.mov
@seniv
Copy link
Owner

seniv commented Mar 2, 2025

Hey, @henrymgarrett, you can try to use the new release candidate version of the library, it contains a lot of changes, but most importantly, it can display the notification at the bottom of the screen with swipe feature working as intended.

Don't worry, it is stable enough to use in Production, and the only reason that it isn't released yet is that I didn't have time to finish the documentation.

To install it, use yarn add react-native-notifier@rc, or the same react-native-notifier@rc for npm
Here you can find migration guide from v2 to v3: https://github.com/seniv/react-native-notifier/blob/main/MIGRATION.md
And here is the documentation: https://github.com/seniv/react-native-notifier/blob/v3.0.0-documentation/README.md
It isn't finished, but already contains the most important information

Demo:

Simulator.Screen.Recording.-.iPhone.16.Pro.Max.-.2025-03-02.at.15.04.07.mp4

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