-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add callbacks to notifications #1
base: master
Are you sure you want to change the base?
Conversation
@@ -3,8 +3,7 @@ | |||
.DS_Store | |||
|
|||
# Xcode | |||
# | |||
build/ |
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.
Why remove this? It's a common default build path
@Override | ||
public void invoke(Object... args) { | ||
} | ||
}); | ||
mRNPushNotificationHelper.clearNotifications(); |
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.
Wouldn't it be neat to use a callback here too? I'm imagining something like:
public void cancelAllLocalNotifications(Callback callback) {
helper.cancelAll(() => {
helper.clear(() => {
callback()
})
})
}
callback.invoke(errorMsg); | ||
Log.e(LOG_TAG, errorMsg); | ||
} else { | ||
callback.invoke(); |
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.
Nice!
No description provided.