{
"component": "CometChatIncomingCall",
"package": "@cometchat/chat-uikit-react-native",
"import": "import { CometChatIncomingCall } from \"@cometchat/chat-uikit-react-native\";",
"description": "Visual representation for incoming voice and video calls with accept/decline options.",
"props": {
"data": {
"call": {
"type": "CometChat.Call | CometChat.CustomMessage",
"note": "The incoming call object"
}
},
"callbacks": {
"onAccept": "(call: CometChat.BaseMessage) => void",
"onDecline": "(call: CometChat.BaseMessage) => void",
"onError": "(error: CometChat.CometChatException) => void"
},
"sound": {
"disableSoundForCalls": { "type": "boolean", "default": false },
"customSoundForCalls": { "type": "string", "default": "built-in" }
},
"viewSlots": {
"ItemView": "(call) => JSX.Element",
"LeadingView": "(call) => JSX.Element",
"TitleView": "(call) => JSX.Element",
"SubtitleView": "(call) => JSX.Element",
"TrailingView": "(call) => JSX.Element"
}
},
"events": [
{ "name": "ccCallRejected", "payload": "{ call }", "description": "Call rejected by receiver" },
{ "name": "ccCallAccepted", "payload": "{ call }", "description": "Call accepted by receiver" },
{ "name": "ccCallEnded", "payload": "{ call }", "description": "Call successfully ended" },
{ "name": "ccCallFailled", "payload": "{ call }", "description": "Error during call" }
]
}