-
Notifications
You must be signed in to change notification settings - Fork 152
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
Conversation
There was a problem hiding this 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"
Hey, @cooperka can you please take a look at this? |
@@ -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}; |
There was a problem hiding this comment.
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
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! |
released in v2.7.0 🎉 |
Thank you for your time for merging this. |
Implement events with snackbar visibility.
It's a native feature on android : https://stackoverflow.com/a/33076569