File tree Expand file tree Collapse file tree 1 file changed +1
-33
lines changed
Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Original file line number Diff line number Diff line change 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
609577Gets the number of unread conversations for a user.
You can’t perform that action at this time.
0 commit comments