How to use the react-native-intercom.removeEventListener function in react-native-intercom

To help you get started, we’ve selected a few react-native-intercom examples, based on popular ways it is used in public projects.

github pillarwallet / pillarwallet / src / actions / notificationsActions.js View on Github external
return () => {
    if (!intercomNotificationsListener) return;
    Intercom.logout();
    Intercom.removeEventListener(Intercom.Notifications.UNREAD_COUNT, intercomNotificationsListener);
  };
};