Skip to content

Commit 904a99f

Browse files
authored
Add getSubtitle to typings and docs (#413)
1 parent 8282d5c commit 904a99f

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,16 @@ Gets the notification's title from the `aps` object
762762

763763
---
764764

765+
### `getSubtitle()`
766+
767+
```jsx
768+
getSubtitle();
769+
```
770+
771+
Gets the notification's subtitle from the `aps` object
772+
773+
---
774+
765775
### `getContentAvailable()`
766776

767777
```jsx

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ export interface PushNotification {
9797
*/
9898
getTitle(): string;
9999

100+
/**
101+
* Gets the notification's subtitle from the `aps` object
102+
*/
103+
getSubtitle(): string | undefined;
104+
100105
/**
101106
* Gets the content-available number from the `aps` object
102107
*/

0 commit comments

Comments
 (0)