Skip to content

Commit f6e5267

Browse files
Merge pull request #32 from intercom/docs/update-readme
Docs: Update readme
2 parents d61df78 + e897239 commit f6e5267

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

README.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Welcome to @intercom/intercom-react-native 👋
22

3-
[![Version](https://img.shields.io/npm/v/intercom-react-native.svg)](https://www.npmjs.com/package/intercom-react-native)
3+
[![Version](https://img.shields.io/npm/v/@intercom/intercom-react-native.svg)](https://www.npmjs.com/package/@intercom/intercom-react-native)
44
[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/intercom/intercom-react-native#readme)
55
[![License: Apache--2.0](https://img.shields.io/badge/License-Apache--2.0-yellow.svg)](https://github.com/intercom/intercom-react-native#readme)
66
[![CircleCi](https://circleci.com/gh/intercom/intercom-react-native.svg?style=shield)](https://github.com/intercom/intercom-react-native#readme)
@@ -572,38 +572,6 @@ This takes a push registration token to send to Intercom to enable this device t
572572

573573
___
574574

575-
### `Intercom.addOnMessageCountChangeListener(callback)`
576-
577-
Sets a listener that will be notified when the unread conversation count for the registered user changes.
578-
579-
```javascript
580-
useEffect(() => {
581-
/**
582-
* Handle message count changed
583-
*/
584-
const event = Intercom.addOnMessageCountChangeListener(({count}) => {
585-
setCount(count);
586-
});
587-
588-
return () => {
589-
event();
590-
};
591-
}, []);
592-
593-
```
594-
595-
### Options
596-
597-
| Type | Type | Required |
598-
| ------- | -------- | -------- |
599-
| callback| function `({count: number}) => void` |yes |
600-
601-
### Returns
602-
603-
`removeEventListener: () => void`
604-
605-
___
606-
607575
### `Intercom.getUnreadConversationCount()`
608576

609577
Gets the number of unread conversations for a user.

0 commit comments

Comments
 (0)