Skip to content

Commit

Permalink
Add getSubtitle to typings and docs (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
fiznool authored Jul 27, 2023
1 parent 8282d5c commit 904a99f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,16 @@ Gets the notification's title from the `aps` object

---

### `getSubtitle()`

```jsx
getSubtitle();
```

Gets the notification's subtitle from the `aps` object

---

### `getContentAvailable()`

```jsx
Expand Down
5 changes: 5 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ export interface PushNotification {
*/
getTitle(): string;

/**
* Gets the notification's subtitle from the `aps` object
*/
getSubtitle(): string | undefined;

/**
* Gets the content-available number from the `aps` object
*/
Expand Down

0 comments on commit 904a99f

Please sign in to comment.