是否可以使用react native实现Comet聊天?

时间:2019-11-17 04:34:59

标签: javascript react-native cometchat

我目前正在使用x应用程序,该帐户具有到目前为止已运行并与网站集成的部分消息传递功能,但有一点需要从该应用程序进行呼叫和视频通话,但是我停止了,所以我需要应用中的某些元素,在调用初始化后,必须调用以下函数

CometChat.startCall(
 sessionID,
 document.getElementById("callScreen"),
 new CometChat.OngoingCallListener({
  onUserJoined: user => {
   /* Notification received here if another user joins the call. */
   console.log("User joined call:", user);
   /* this method can be use to display message or perform any actions if someone joining the call */
  },
  onUserLeft: user => {
   /* Notification received here if another user left the call. */
   console.log("User left call:", user);
   /* this method can be use to display message or perform any actions if someone leaving the call */
  },
  onCallEnded: call => {
   /* Notification received here if current ongoing call is ended. */
   console.log("Call ended:", call);
   /* hiding/closing the call screen can be done here. */
  }
 })
);

,我的意思是...我认为这无法应用,因为它接收到一个document.getElementById ('root')作为参数 一些经验证实该技术是否可以用于本机反应。这是自由主义者的文件。

https://prodocs.cometchat.com/docs/js-quick-start

我正在使用本机0.65和@ cometchat-pro / react-native-chat

0 个答案:

没有答案