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

Implement snackbar visibility events #191

Merged
merged 14 commits into from
May 9, 2023

Conversation

rvasseur31
Copy link
Contributor

Implement events with snackbar visibility.

It's a native feature on android : https://stackoverflow.com/a/33076569

@rvasseur31 rvasseur31 changed the title Feature/callbacks WIP : Feature/callbacks Sep 16, 2021
@rvasseur31 rvasseur31 changed the title WIP : Feature/callbacks Feature/callbacks Sep 16, 2021
@rvasseur31 rvasseur31 changed the title Feature/callbacks Implement snackbar visibility events Sep 16, 2021
@rvasseur31 rvasseur31 changed the title Implement snackbar visibility events WIP : Implement snackbar visibility events Sep 16, 2021
@rvasseur31 rvasseur31 changed the title WIP : Implement snackbar visibility events Implement snackbar visibility events Sep 17, 2021
Copy link
Owner

@cooperka cooperka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great code @rvasseur31, thanks for this well-documented enhancement. I will merge this when I can.

Until then, folks can use this right now via your fork as you recommended on another issue -- in package.json:

"react-native-snackbar": "rvasseur31/react-native-snackbar#feature/callbacks"

@papidb
Copy link

papidb commented Jan 8, 2023

Hey, @cooperka can you please take a look at this?

example/src/App.js Outdated Show resolved Hide resolved
@@ -37,7 +39,7 @@ @interface RNSnackBarView () {
@implementation RNSnackBarView

+ (void)initialize {
DEFAULT_DURATIONS = @{@"-1" : @1500, @"-2" : @2750, @"0" : @INT_MAX};
DEFAULT_DURATIONS = @{@"-1" : @1500, @"0" : @2750, @"-2" : @INT_MAX};
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note to self: this changed, not worth reverting

yarn.lock Outdated Show resolved Hide resolved
@cooperka
Copy link
Owner

cooperka commented May 9, 2023

i badly want to keep this library updated, but i don't currently develop react-native applications on a regular basis, so it's a lot of work to keep my dev environment in working order... new laptop, nothing works.

i'm going to ship this code (untested) as a new version; if anything breaks folks can always revert their version & submit a PR to fix it. it's very easy to merge things like that.

thanks again for the contribution, @rvasseur31!

@cooperka cooperka merged commit fd8679a into cooperka:main May 9, 2023
@cooperka
Copy link
Owner

cooperka commented May 9, 2023

released in v2.7.0 🎉

@rvasseur31 rvasseur31 deleted the feature/callbacks branch May 9, 2023 18:24
@rvasseur31
Copy link
Contributor Author

i badly want to keep this library updated, but i don't currently develop react-native applications on a regular basis, so it's a lot of work to keep my dev environment in working order... new laptop, nothing works.

i'm going to ship this code (untested) as a new version; if anything breaks folks can always revert their version & submit a PR to fix it. it's very easy to merge things like that.

thanks again for the contribution, @rvasseur31!

Thank you for your time for merging this.

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

Successfully merging this pull request may close these issues.

3 participants