{
"component": "CometChatCallLogs",
"package": "@cometchat/chat-uikit-react-native",
"import": "import { CometChatCallLogs } from \"@cometchat/chat-uikit-react-native\";",
"description": "Scrollable list of call history showing missed, received, and outgoing calls.",
"props": {
"data": {
"callLogRequestBuilder": {
"type": "CallLogRequestBuilder",
"note": "Pass the builder, not the result of .build()"
},
"datePattern": {
"type": "DatePattern",
"note": "Custom date format for call timestamps"
}
},
"callbacks": {
"onItemPress": "(call: any) => void",
"onItemLongPress": "(prop: { call: any }) => void",
"onCallIconPress": "(item: any) => void",
"onBack": "() => void",
"onError": "(error: CometChat.CometChatException) => void",
"onLoad": "(list: any[]) => void",
"onEmpty": "() => void"
},
"visibility": {
"showBackButton": { "type": "boolean", "default": true },
"hideError": { "type": "boolean", "default": false },
"hideHeader": { "type": "boolean", "default": false },
"hideLoadingState": { "type": "boolean", "default": false }
},
"viewSlots": {
"ItemView": "(call: any) => JSX.Element",
"LeadingView": "(call: any) => JSX.Element",
"TitleView": "(call: any) => JSX.Element",
"SubtitleView": "(call: any) => JSX.Element",
"TrailingView": "(call: any, defaultOnPress?: (call: any) => void) => JSX.Element",
"LoadingView": "() => JSX.Element",
"EmptyView": "() => JSX.Element",
"ErrorView": "(e: CometChat.CometChatException) => JSX.Element",
"AppBarOptions": "() => JSX.Element"
}
},
"compositionExample": {
"description": "Call history list with call-back functionality",
"components": [
"CometChatCallLogs",
"CometChatOutgoingCall"
],
"flow": "onItemPress initiates call to participant, onCallIconPress triggers call-back"
}
}