【问题标题】:How to get the count of unread messages in React native with gifted chat library?如何使用天才聊天库获取 React Native 中未读消息的计数?
【发布时间】:2020-11-11 14:59:19
【问题描述】:

我目前正在为我的应用程序中的消息/聊天功能使用 react native 有天赋的聊天。 现在我想为用户显示未读消息,是否有人对此有想法或有任何建议来解决这个问题。 任何帮助/建议将不胜感激, 提前致谢。

React native gifted chat link

【问题讨论】:

    标签: react-native google-cloud-firestore react-native-gifted-chat


    【解决方案1】:

    目前没有这样的功能。但是您可以通过管理消息在聊天列表屏幕上执行此操作。 收到消息后,您可以标记为已送达和存储,当您打开标记为已读时。所以你可以数没有。未读状态的消息。你必须使用 redux 来管理它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-24
      • 1970-01-01
      • 2015-10-27
      • 2021-02-07
      • 1970-01-01
      • 1970-01-01
      • 2019-04-09
      相关资源
      最近更新 更多