Skip to content

Add method getTitle to get notification title in JS #157

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

Merged
merged 7 commits into from
Jul 20, 2020

Conversation

lukebars
Copy link
Contributor

Summary

Currently, we can access notification's alertBody by using getAlert() or getMessage(), but there is no method for getting the alertTitlein JavaScript side. This PR adds that missing piece.

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I mentioned this change in CHANGELOG.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)

@lukebars
Copy link
Contributor Author

cc @Naturalclar

Copy link
Collaborator

@Naturalclar Naturalclar left a comment

Choose a reason for hiding this comment

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

@lukebars thanks so much <3

@Naturalclar Naturalclar merged commit 34b4b28 into react-native-push-notification:master Jul 20, 2020
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.

2 participants