> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-rn-guide-message-privately.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Call Logs

> Call Logs — CometChat documentation.

## Overview

`CometChatCallLogs` is a [Component](/ui-kit/react/v4/components-overview#components) that shows the list of Call Log available . By default, names are shown for all listed users, along with their avatar if available.

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/2JiXkJ8lq6PmPGlJ/images/6d5758be-call_logs_overview_web_screens-d1bd9a2728f9be275e6f10f00e377f10.png?fit=max&auto=format&n=2JiXkJ8lq6PmPGlJ&q=85&s=977da01fc5b1d69b0944a9766b86bb6d" width="3600" height="2400" data-path="images/6d5758be-call_logs_overview_web_screens-d1bd9a2728f9be275e6f10f00e377f10.png" />
</Frame>

The `Call Logs` is comprised of the following components:

| Components                                      | Description                                                                                                                 |
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| CometChatList                                   | a reusable container component having title, search box, customisable background and a List View                            |
| [cometchat-backdrop](/ui-kit/react/v4/backdrop) | This element represents the background against which other elements are presented.                                          |
| [CometChatListItem](/ui-kit/react/v4/list-item) | a component that renders data obtained from a Group object on a Tile having a title, subtitle, leading and trailing view    |
| [cometchat-date](/ui-kit/react/v4/date)         | This Component used to show the date and time. You can also customize the appearance of this widget by modifying its logic. |
| cometchat-button                                | This component represents a button with optional icon and text.                                                             |

## Usage

### Integration

<Tabs>
  <Tab title="CallLogDemo.tsx">
    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      return <CometChatCallLogs />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="App.tsx">
    ```typescript theme={null}
    import { CallLogDemo } from "./CallLogDemo";

    export default function App() {
      return (
        <div className="App">
          <div>
            <CallLogDemo />
          </div>
        </div>
      );
    }
    ```
  </Tab>
</Tabs>

### Actions

[Actions](/ui-kit/react/v4/components-overview#actions) dictate how a component functions. They are divided into two types: Predefined and User-defined. You can override either type, allowing you to tailor the behavior of the component to fit your specific needs.

#### 1. onItemClick

`OnItemClick` is triggered when you click on a ListItem of the Call Logs component. By default it initiate a call to the participant associated with the respective ListItem. You can override this action using the following code snippet.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnItemClick = () => {
        console.log("custom on item click");
      };
      return <CometChatCallLogs onItemClick={handleOnItemClick} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnItemClick = () => {
        console.log("custom on item click");
      };
      return <CometChatCallLogs onItemClick={handleOnItemClick} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

#### 2. onInfoClick

`onInfoClick` is triggered when you click the Info button Icon of the `Call Logs` component. It does not have a default behavior. However, you can override its behavior using the following code snippet.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnInfoClick = () => {
        console.log("custom on info click");
      };
      return <CometChatCallLogs onInfoClick={handleOnInfoClick} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnInfoClick = () => {
        console.log("custom on info click");
      };
      return <CometChatCallLogs onInfoClick={handleOnInfoClick} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

#### 3. onError

This action doesn't change the behavior of the component but rather listens for any errors that occur in the Call Logs component.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnError = () => {
        console.log("your custom on error actions");
      };
      return <CometChatCallLogs onError={handleOnError} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const handleOnError = () => {
        console.log("your custom on error actions");
      };
      return <CometChatCallLogs onError={handleOnError} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

### Filters

**Filters** allow you to customize the data displayed in a list within a `Component`. You can filter the list based on your specific criteria, allowing for a more customized. Filters can be applied using `RequestBuilders` of Chat SDK.

#### 1. CallLogRequestBuilder

The [CallLogRequestBuilder](/sdk/javascript/call-logs) enables you to filter and customize the Call Log based on available parameters in [CallLogRequestBuilder](/sdk/javascript/call-logs). This feature allows you to create more specific and targeted queries when fetching the call logs. The following are the parameters available in [CallLogRequestBuilder](/sdk/javascript/call-logs)

| Methods              | Type       | Description                                                  |
| -------------------- | ---------- | ------------------------------------------------------------ |
| **setLimit**         | number     | Specifies the number of call logs to fetch.                  |
| **setCallType**      | String     | Sets the type of calls to fetch (call or meet).              |
| **setCallStatus**    | callStatus | Sets the status of calls to fetch (initiated, ongoing, etc.) |
| **setHasRecording**  | boolean    | Sets whether to fetch calls that have recordings.            |
| **setCallCategory**  | string     | Sets the category of calls to fetch (call or meet).          |
| **setCallDirection** | string     | Sets the direction of calls to fetch (incoming or outgoing)  |
| **setUid**           | string     | Sets the UID of the user whose call logs to fetch.           |
| **setGuid**          | string     | Sets the GUID of the user whose call logs to fetch.          |
| **setAuthToken**     | string     | Sets the Auth token of the logged-in user.                   |

**Example**

In the example below, we're filtering Call Logs to show only canceled calls and setting the limit to five.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CallLogRequestBuilder } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      return (
        <CometChatCallLogs
          callLogRequestBuilder={new CallLogRequestBuilder()
            .setAuthToken("authtoken")
            .setLimit(5)
            .setCallStatus("cancelled")}
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CallLogRequestBuilder } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      return (
        <CometChatCallLogs
          callLogRequestBuilder={new CallLogRequestBuilder()
            .setAuthToken("authtoken")
            .setLimit(5)
            .setCallStatus("cancelled")}
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

### Events

[Events](/ui-kit/react/v4/components-overview#events) are emitted by a `Component`. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.

The list of events emitted by the `Call Logs` component is as follows.

| Event             | Description                                                                                               |
| ----------------- | --------------------------------------------------------------------------------------------------------- |
| **ccMessageSent** | This event is triggered when the sent message is in transit and also when it is received by the receiver. |

***

<Tabs>
  <Tab title="Add Listener">
    ```javascript theme={null}
    const ccMessageSent = CometChatMessageEvents.ccMessageSent.subscribe(() => {
      //Your Code
    });
    ```
  </Tab>
</Tabs>

***

<Tabs>
  <Tab title="Remove Listener">
    ```javascript theme={null}
    ccMessageSent?.unsubscribe();
    ```
  </Tab>
</Tabs>

***

## Customization

To fit your app's design requirements, you can customize the appearance of the Call Logs component. We provide exposed methods that allow you to modify the experience and behavior according to your specific needs.

### Style

Using Style you can customize the look and feel of the component in your app, These parameters typically control elements such as the color, size, shape, and fonts used within the component.

#### 1. CallLogs Style

To customize the appearance, you can assign a `CallLogsStyle` object to the `Call Logs` component.

**Example**

In this example, we are employing the `callLogsStyle`.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs, CallLogsStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const callLogsStyle = new CallLogsStyle({
        background: "#dac6f5",
        titleColor: "#000000",
        dateTextColor: "#dac6f5",
      });
      return <CometChatCallLogs callLogsStyle={callLogsStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs, CallLogsStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const callLogsStyle = new CallLogsStyle({
        background: "#dac6f5",
        titleColor: "#000000",
        dateTextColor: "#dac6f5",
      });
      return <CometChatCallLogs callLogsStyle={callLogsStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/k0f_g7UwNe_JINeP/images/45a531d0-call_logs_style_web_screens-9a6dbef33948ea7e0df0cc0e679da14f.png?fit=max&auto=format&n=k0f_g7UwNe_JINeP&q=85&s=634c66cc9db2c96d4ab1c11ed95c3124" width="3600" height="2400" data-path="images/45a531d0-call_logs_style_web_screens-9a6dbef33948ea7e0df0cc0e679da14f.png" />
</Frame>

***

The following properties are exposed by `CallLogsStyle`:

| Property                   | Description                           | Code                               |
| -------------------------- | ------------------------------------- | ---------------------------------- |
| **border**                 | Used to set border                    | `border?: string,`                 |
| **borderRadius**           | Used to set border radius             | `borderRadius?: string;`           |
| **background**             | Used to set background colour         | `background?: string;`             |
| **height**                 | Used to set height                    | `height?: string;`                 |
| **width**                  | Used to set width                     | `width?: string;`                  |
| **titleFont**              | Used to set title font                | `titleFont?: string,`              |
| **titleColor**             | Used to set title color               | `titleColor?: string;`             |
| **emptyStateTextColor**    | Used to set empty state text color    | `emptyStateTextColor?: string;`    |
| **emptyStateTextFont**     | Used to set empty state text font     | `emptyStateTextFont?: string;`     |
| **errorStateTextColor**    | Used to set error state text color    | `errorStateTextColor?: string;`    |
| **errorStateTextFont**     | Used to set error state text font     | `errorStateTextFont?: string;`     |
| **loadingIconTint**        | Used to set loading icon tint         | `loadingIconTint?: string;`        |
| **infoIconTint**           | Used to set info icon tint            | `infoIconTint?: string;`           |
| **missedCallIconTint**     | Used to set missed call icon tint     | `missedCallIconTint?: string;`     |
| **outgoingCallIconTint**   | Used to set outgoing call icon tint   | `outgoingCallIconTint?: string;`   |
| **incomingCallIconTint**   | Used to set incoming call icon tint   | `incomingCallIconTint?: string;`   |
| **callStatusTextFont**     | Used to set call status text font     | `callStatusTextFont?: string;`     |
| **callStatusTextColor**    | Used to set call status text color    | `callStatusTextColor?: string;`    |
| **dateTextFont**           | Used to set date text font            | `dateTextFont?: string;`           |
| **dateTextColor**          | Used to set date text color           | `dateTextColor?: string;`          |
| **dateSeparatorTextFont**  | Used to set date separator text font  | `dateSeparatorTextFont?: string;`  |
| **dateSeparatorTextColor** | Used to set date separator text color | `dateSeparatorTextColor?: string;` |

#### 2. Avatar Style

If you want to apply customized styles to the `Avatar` component within the `Call Logs` Component, you can use the following code snippet. For more information you can refer [Avatar Styles](/ui-kit/react/v4/avatar#avatar-style).

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs, AvatarStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const avatarStyle = new AvatarStyle({
        backgroundColor: "#cdc2ff",
        border: "2px solid #6745ff",
        borderRadius: "10px",
        outerViewBorderColor: "#ca45ff",
        outerViewBorderRadius: "5px",
        nameTextColor: "#4554ff",
      });
      return <CometChatCallLogs avatarStyle={avatarStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs, AvatarStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const avatarStyle = new AvatarStyle({
        backgroundColor: "#cdc2ff",
        border: "2px solid #6745ff",
        borderRadius: "10px",
        outerViewBorderColor: "#ca45ff",
        outerViewBorderRadius: "5px",
        nameTextColor: "#4554ff",
      });
      return <CometChatCallLogs avatarStyle={avatarStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

#### 3. ListItem Style

If you want to apply customized styles to the `ListItemStyle` component within the `Call Logs` Component, you can use the following code snippet. For more information, you can refer [ListItem Styles](/ui-kit/react/v4/list-item#listitemstyle).

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs, ListItemStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const listItemStyle = new ListItemStyle({
        width: "100%",
        height: "100%",
        border: "2px solid #cdc2ff",
      });
      return <CometChatCallLogs listItemStyle={listItemStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs, ListItemStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const listItemStyle = new ListItemStyle({
        width: "100%",
        height: "100%",
        border: "2px solid #cdc2ff",
      });
      return <CometChatCallLogs listItemStyle={listItemStyle} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

### Functionality

These are a set of small functional customizations that allow you to fine-tune the overall experience of the component. With these, you can change text, set custom icons, and toggle the visibility of UI elements.

Here is a code snippet demonstrating how you can customize the functionality of the `Call Logs` component.

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      return (
        <CometChatCallLogs
          title="Your Custom Title"
          datePattern={DatePatterns.DayDateTime}
          hideSeparator={false}
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      return (
        <CometChatCallLogs
          title="Your Custom Title"
          datePattern={DatePatterns.DayDateTime}
          hideSeparator={false}
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/_MYSdWhXnUkTkjEH/images/4e0b95ab-call_logs_functionality_default_web_screens-0853f993061a9b9b0d224c3d625afd7b.png?fit=max&auto=format&n=_MYSdWhXnUkTkjEH&q=85&s=245d71da4b3ee3332103f02ee51530c9" width="3600" height="2400" data-path="images/4e0b95ab-call_logs_functionality_default_web_screens-0853f993061a9b9b0d224c3d625afd7b.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/NN4EdpOU3viwWMb_/images/0d1ae652-call_logs_functionality_custom_web_screens-f1c16f2cc45fa0add6c194f52322b458.png?fit=max&auto=format&n=NN4EdpOU3viwWMb_&q=85&s=d7058140d04c4c93d64597fa8dca7aa7" width="3600" height="2400" data-path="images/0d1ae652-call_logs_functionality_custom_web_screens-f1c16f2cc45fa0add6c194f52322b458.png" />
</Frame>

Below is a list of customizations along with corresponding code snippets

| Property                     | Description                                        | Code                                                         |
| ---------------------------- | -------------------------------------------------- | ------------------------------------------------------------ |
| **title**                    | Used to set custom title                           | `title='Your Custom Title'`                                  |
| **emptyStateText**           | Used to set custom empty state text                | `emptyStateText='Your Custom Empty State Text'`              |
| **errorStateText**           | Used to set custom error state text                | `errorStateText='Your Custom Error State Text'`              |
| **titleAlignment**           | Used to set custom title alignment                 | `titleAlignment={TitleAlignment.center}`                     |
| **datePattern**              | Used to set custom date pattern                    | `datePattern={DatePatterns.DayDateTime}`                     |
| **dateSeparatorPattern**     | Used to set custom date separator pattern          | `dateSeparatorPattern={DatePatterns.DayDateTime}`            |
| **infoIconUrl**              | Used to set custom info icon                       | `infoIconUrl='Custom Info Icon URL'`                         |
| **incomingAudioCallIconUrl** | Used to set custom incoming audio call icon        | `incomingAudioCallIconUrl='Custom Incoming Audio Call Icon'` |
| **missedAudioCallIconUrl**   | Used to set custom missed audio call icon          | `missedAudioCallIconUrl='Custom Missed Audio Call Icon'`     |
| **missedVideoCallIconUrl**   | Used to set custom missed video call icon          | `missedVideoCallIconUrl='Custom Missed Video Call Icon'`     |
| **incomingVideoCallIconUrl** | Used to set custom incoming video call icon        | `incomingVideoCallIconUrl='Custom Incoming Video Call Icon'` |
| **outgoingAudioCallIconUrl** | Used to set custom outgoing audio call icon        | `outgoingAudioCallIconUrl='Custom Outgoing Audio Call Icon'` |
| **outgoingVideoCallIconUrl** | Used to set custom outgoing video call icon        | `outgoingVideoCallIconUrl='Custom Outgoing Video Call Icon'` |
| **loadingIconURL**           | Used to set custom loading icon                    | `loadingIconURL='Custom Loading Icon'`                       |
| **hideSeparator**            | Option to hide separator                           | `hideSeparator={false}`                                      |
| **activeCall**               | Used to set active Call that is currently selected | `activeCall={call}`                                          |

***

### Advanced

For advanced-level customization, you can set custom views to the component. This lets you tailor each aspect of the component to fit your exact needs and application aesthetics. You can create and define your views, layouts, and UI elements and then incorporate those into the component.

***

#### ListItemView

With this property, you can assign a custom ListItem to the Call Logs Component.

```javascript theme={null}
listItemView = { getListItemView };
```

**Example**

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/2SVOPiSpm0QEqRoz/images/ea2a27d3-call_logs_list_item_view_default_web_screens-506fa090bed2b8bf2afc7e9359467ef7.png?fit=max&auto=format&n=2SVOPiSpm0QEqRoz&q=85&s=c56ad3dd3d86b085c4fd91ceecced99f" width="3600" height="2400" data-path="images/ea2a27d3-call_logs_list_item_view_default_web_screens-506fa090bed2b8bf2afc7e9359467ef7.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/FGBCGWXGo5d9bVxR/images/c32ca3ec-call_logs_list_item_view_custom_web_screens-65efd5bab911e5af186833b607c06c33.png?fit=max&auto=format&n=FGBCGWXGo5d9bVxR&q=85&s=bcad5231851c4411444a7f19453e9422" width="3600" height="2400" data-path="images/c32ca3ec-call_logs_list_item_view_custom_web_screens-65efd5bab911e5af186833b607c06c33.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CallLog } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getListItemView = (call: CallLog) => {
        if (call.getInitiator()) {
          return (
            <div
              style={{
                display: "flex",
                alignItems: "left",
                padding: "10px",
                border: "2px solid #e9baff",
                borderRadius: "20px",
                background: "#6e2bd9",
              }}
            >
              <cometchat-avatar
                image={call.getInitiator().getAvatar()}
                name={call.getInitiator().getName()}
              />
              <div style={{ display: "flex", paddingLeft: "10px" }}>
                <div
                  style={{ fontWeight: "bold", color: "#ffffff", fontSize: "14px" }}
                >
                  {call.getInitiator().getName()}
                </div>
              </div>
            </div>
          );
        } else {
          return <div>{call.getReceiver().getName()}</div>;
        }
      };

      return <CometChatCallLogs listItemView={getListItemView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getListItemView = (call) => {
        if (call.getInitiator()) {
          return (
            <div
              style={{
                display: "flex",
                alignItems: "left",
                padding: "10px",
                border: "2px solid #e9baff",
                borderRadius: "20px",
                background: "#6e2bd9",
              }}
            >
              <cometchat-avatar
                image={call.getInitiator().getAvatar()}
                name={call.getInitiator().getName()}
              />
              <div style={{ display: "flex", paddingLeft: "10px" }}>
                <div
                  style={{ fontWeight: "bold", color: "#ffffff", fontSize: "14px" }}
                >
                  {call.getInitiator().getName()}
                </div>
              </div>
            </div>
          );
        } else {
          return <div>{call.getReceiver().getName()}</div>;
        }
      };
      return <CometChatCallLogs listItemView={getListItemView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

#### SubtitleView

You can customize the subtitle view for each call logs item to meet your requirements

```javascript theme={null}
subtitleView = { getSubtitleView };
```

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/xIG5VBdyNJ5cYSqE/images/d228d043-call_logs_subtitle_view_default_web_screens-64218d28454cbb8ad6dad843f49f6e1b.png?fit=max&auto=format&n=xIG5VBdyNJ5cYSqE&q=85&s=5adeaf53635ac7acc9ec3789eda0298e" width="3600" height="2400" data-path="images/d228d043-call_logs_subtitle_view_default_web_screens-64218d28454cbb8ad6dad843f49f6e1b.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/Xgdtn9VZPDi47bm-/images/23667da7-call_logs_subtitle_view_custom_web_screens-38ac66906d044da9b6f34efc23348ecd.png?fit=max&auto=format&n=Xgdtn9VZPDi47bm-&q=85&s=a4a004f3338a6bce2744d119542e4e86" width="3600" height="2400" data-path="images/23667da7-call_logs_subtitle_view_custom_web_screens-38ac66906d044da9b6f34efc23348ecd.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CallLog } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getSubtitleView = (call: CallLog): JSX.Element => {
        return (
          <div
            style={{
              display: "flex",
              alignItems: "left",
              padding: "2px",
              fontSize: "10px",
            }}
          >
            <div style={{ color: "gray", fontSize: "15px" }}>
              {call.getStatus()}
            </div>
          </div>
        );
      };

      return <CometChatCallLogs subtitleView={getSubtitleView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getSubtitleView = (call) => {
        return (
          <div
            style={{
              display: "flex",
              alignItems: "left",
              padding: "2px",
              fontSize: "10px",
            }}
          >
            <div style={{ color: "gray", fontSize: "15px" }}>
              {call.getStatus()}
            </div>
          </div>
        );
      };

      return <CometChatCallLogs subtitleView={getSubtitleView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

#### TailView

You can customize the tail view for each call logs item to meet your requirements

```javascript theme={null}
tailView = { getTailView };
```

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/3EDM5JvI4mnAULac/images/7ab55640-call_logs_tailview_view_default_web_screens-5d23ec8c3c43e4d85b19db5c631ef366.png?fit=max&auto=format&n=3EDM5JvI4mnAULac&q=85&s=ab6015860efc9986d402495369002808" width="3600" height="2400" data-path="images/7ab55640-call_logs_tailview_view_default_web_screens-5d23ec8c3c43e4d85b19db5c631ef366.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mNTojjz_O28of40c/images/f42b1867-call_logs_tailview_view_custom_web_screens-0d61ad57a621b1e478592e2a4cdbf3da.png?fit=max&auto=format&n=mNTojjz_O28of40c&q=85&s=7539c2f6163a0f69d7103d215f2f0c46" width="3600" height="2400" data-path="images/f42b1867-call_logs_tailview_view_custom_web_screens-0d61ad57a621b1e478592e2a4cdbf3da.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CallLog } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      function getTailView(call: CallLog): JSX.Element {
        function formatTime(timestamp: number) {
          const date = new Date(timestamp * 1000);
          return date.toLocaleString();
        }
        return (
          <div
            style={{
              color: "#5a00a8",
              border: "1px solid #5a00a8",
              borderRadius: "12px",
              padding: "5px",
            }}
          >
            {formatTime(call.getInitiatedAt())}
          </div>
        );
      }

      return <CometChatCallLogs tailView={getTailView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      function getTailView(call) {
        function formatTime(timestamp) {
          const date = new Date(timestamp * 1000);
          return date.toLocaleString();
        }
        return (
          <div
            style={{
              color: "#5a00a8",
              border: "1px solid #5a00a8",
              borderRadius: "12px",
              padding: "5px",
            }}
          >
            {formatTime(call.getInitiatedAt())}
          </div>
        );
      }

      return <CometChatCallLogs tailView={getTailView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

#### LoadingStateView

You can set a custom loader view using `loadingStateView` to match the loading view of your app.

```javascript theme={null}
loadingStateView={getLoadingStateView()}
```

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/_MYSdWhXnUkTkjEH/images/45d3fdab-call_logs_loading_state_view_default_web_screens-e351ed40e0407382e07795621703c7f4.png?fit=max&auto=format&n=_MYSdWhXnUkTkjEH&q=85&s=7222d42e7d922034846a07b250d511ad" width="3600" height="2400" data-path="images/45d3fdab-call_logs_loading_state_view_default_web_screens-e351ed40e0407382e07795621703c7f4.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/XgQ9DxAoWn0btB5m/images/621fc1f7-call_logs_loading_state_view_custom_web_screens-bb7b4139c66933617278a187dbe17973.png?fit=max&auto=format&n=XgQ9DxAoWn0btB5m&q=85&s=62322f593c41b808e72d27a357edb77d" width="3600" height="2400" data-path="images/621fc1f7-call_logs_loading_state_view_custom_web_screens-bb7b4139c66933617278a187dbe17973.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CallLog } from "@cometchat/calls-sdk-javascript";
    import { CometChatCallLogs, LoaderStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getLoadingStateView = () => {
        const getLoaderStyle = new LoaderStyle({
          iconTint: "#890aff",
          background: "red",
          height: "100vh",
          width: "100vw",
          border: "none",
          borderRadius: "0",
        });

        return (
          <div style={{ background: "red", position: "absolute", top: "0" }}>
            <cometchat-loader
              iconURL="icon"
              loaderStyle={JSON.stringify(getLoaderStyle)}
            ></cometchat-loader>
          </div>
        );
      };

      return <CometChatCallLogs loadingStateView={getLoadingStateView()} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs, LoaderStyle } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getLoadingStateView = () => {
        const getLoaderStyle = new LoaderStyle({
          iconTint: "#890aff",
          background: "red",
          height: "100vh",
          width: "100vw",
          border: "none",
          borderRadius: "0",
        });

        return (
          <div style={{ background: "red", position: "absolute", top: "0" }}>
            <cometchat-loader
              iconURL="icon"
              loaderStyle={JSON.stringify(getLoaderStyle)}
            ></cometchat-loader>
          </div>
        );
      };

      return <CometChatCallLogs loadingStateView={getLoadingStateView()} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

#### EmptyStateView

You can set a custom `EmptyStateView` using `emptyStateView` to match the empty view of your app.

```javascript theme={null}
emptyStateView={getEmptyStateView()}
```

Default:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/fxK75AS6FzDL1Oqo/images/b71469f2-call_logs_empty_state_view_default_web_screens-c4ed8bfc7bc5278ef644505b9b3d010e.png?fit=max&auto=format&n=fxK75AS6FzDL1Oqo&q=85&s=25fc3890218397de839a0840bfed7884" width="3600" height="2400" data-path="images/b71469f2-call_logs_empty_state_view_default_web_screens-c4ed8bfc7bc5278ef644505b9b3d010e.png" />
</Frame>

Custom:

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/2SVOPiSpm0QEqRoz/images/ee855e70-call_logs_empty_state_view_custom_web_screens-98d26242514a65dbfbf6fc41b0e9bf2f.png?fit=max&auto=format&n=2SVOPiSpm0QEqRoz&q=85&s=6879f6ef0a5c9363b25a67d3df87c99b" width="3600" height="2400" data-path="images/ee855e70-call_logs_empty_state_view_custom_web_screens-98d26242514a65dbfbf6fc41b0e9bf2f.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getEmptyStateView = () => {
        return (
          <div style={{ color: "#d6cfff", fontSize: "30px", font: "bold" }}>
            Your Custom Empty State
          </div>
        );
      };

      return <CometChatCallLogs emptyStateView={getEmptyStateView()} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getEmptyStateView = () => {
        return (
          <div style={{ color: "#d6cfff", fontSize: "30px", font: "bold" }}>
            Your Custom Empty State
          </div>
        );
      };

      return <CometChatCallLogs emptyStateView={getEmptyStateView()} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***

#### ErrorStateView

You can set a custom `ErrorStateView` using `errorStateView` to match the error view of your app.

```javascript theme={null}
errorStateView={getErrorStateView()}
```

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getErrorStateView = () => {
        return (
          <div style={{ height: "100vh", width: "100vw" }}>
            <img
              src="custom image"
              alt="error icon"
              style={{
                height: "100px",
                width: "100px",
                marginTop: "250px",
                justifyContent: "center",
              }}
            ></img>
          </div>
        );
      };

      return <CometChatCallLogs errorStateView={getErrorStateView()} />;
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import { CometChatCallLogs } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const getErrorStateView = () => {
        return (
          <div style={{ height: "100vh", width: "100vw" }}>
            <img
              src="custom image"
              alt="error icon"
              style={{
                height: "100px",
                width: "100px",
                marginTop: "250px",
                justifyContent: "center",
              }}
            ></img>
          </div>
        );
      };

      return <CometChatCallLogs errorStateView={getErrorStateView} />;
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

## Configurations

[Configurations](/ui-kit/react/v4/components-overview#configurations) offer the ability to customize the properties of each component within a Composite Component.

CometChatCallLogs has `OutGoing Call` component. Hence, each of these components will have its individual \`Configuration\`\`.

* `Configurations` expose properties that are available in its individual components.

#### OutGoing Call

You can customize the properties of the OutGoing Call component by making use of the `OutgoingCallConfiguration`. You can accomplish this by employing the `outgoingCallConfiguration` props as demonstrated below:

<Tabs>
  <Tab title="TypeScript">
    ```typescript theme={null}
    outgoingCallConfiguration={new OutgoingCallConfiguration({
      //override properties of out going call
    })}
    ```
  </Tab>

  <Tab title="JavaScript">
    ```javascript theme={null}
    outgoingCallConfiguration={new OutgoingCallConfiguration({
      //override properties of out going call
    })}
    ```
  </Tab>
</Tabs>

All exposed properties of `OutgoingCallConfiguration` can be found under [OutGoing Call](/ui-kit/react/v4/outgoing-call#functionality). Properties marked with the [report]() symbol are not accessible within the Configuration Object.

**Example**

Let's say you want to change the style of the OutGoing Call subcomponent and, in addition, you want to change the decline button icon.

You can modify the style using the `outgoingCallStyle` property and set custom decline button icon using `declineButtonIconURL` property.

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/ugckbRl5Q-H7t8X2/images/e3e289c6-call_logs_outgoingcall_configuration_web_screens-1140f57d7ebed6c965f357d63aa35c7f.png?fit=max&auto=format&n=ugckbRl5Q-H7t8X2&q=85&s=c0e1ec01ef673c6b0c97ba48d164cfd4" width="3600" height="2400" data-path="images/e3e289c6-call_logs_outgoingcall_configuration_web_screens-1140f57d7ebed6c965f357d63aa35c7f.png" />
</Frame>

<Tabs>
  <Tab title="TypeScript">
    CallLogDemo.tsx

    ```typescript theme={null}
    import {
      CometChatCallLogs,
      OutgoingCallConfiguration,
      OutgoingCallStyle,
    } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const outgoingCallStyle = new OutgoingCallStyle({
        background: "#e0d5f5",
        declineButtonIconBackground: "#6830d1",
        height: "500px",
        width: "300px",
        declineButtonTextColor: "#ffffff",
        titleTextColor: "#ffffff",
        subtitleTextColor: "#9213d6",
        declineButtonIconTint: "#dbb1f2",
        border: "1px solid #e6e6e6",
        borderRadius: "12px",
      });
      return (
        <CometChatCallLogs
          outgoingCallConfiguration={
            new OutgoingCallConfiguration({
              //override properties of out going call
              outgoingCallStyle: outgoingCallStyle,
              declineButtonIconURL: "custom decline button icon",
            })
          }
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>

  <Tab title="JavaScript">
    CallLogDemo.jsx

    ```javascript theme={null}
    import {
      CometChatCallLogs,
      OutgoingCallConfiguration,
      OutgoingCallStyle,
    } from "@cometchat/chat-uikit-react";
    import React from "react";

    const CallLogDemo = () => {
      const outgoingCallStyle = new OutgoingCallStyle({
        background: "#e0d5f5",
        declineButtonIconBackground: "#6830d1",
        height: "500px",
        width: "300px",
        declineButtonTextColor: "#ffffff",
        titleTextColor: "#ffffff",
        subtitleTextColor: "#9213d6",
        declineButtonIconTint: "#dbb1f2",
        border: "1px solid #e6e6e6",
        borderRadius: "12px",
      });
      return (
        <CometChatCallLogs
          outgoingCallConfiguration={
            new OutgoingCallConfiguration({
              //override properties of out going call
              outgoingCallStyle: outgoingCallStyle,
              declineButtonIconURL: "custom decline button icon",
            })
          }
        />
      );
    };

    export default CallLogDemo;
    ```
  </Tab>
</Tabs>

***
