> ## Documentation Index
> Fetch the complete documentation index at: https://www.cometchat.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Call Participants

> Call Participants — CometChat documentation.

## Overview

`CometChatCallParticipants` is a [Component](/ui-kit/react-native/v4/components-overview#components) that shows a separate view that displays comprehensive information about Call. This will enable users to easily access details such as the call participants, call details for a more informed communication experience.

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/nUllIo1r4Bhce7kY/images/349e5186-participants_overview_cometchat_screens-7107cf19e034279cfb12ad115ec27951.png?fit=max&auto=format&n=nUllIo1r4Bhce7kY&q=85&s=951fe714db250d7c39ff8fc4e1239454" alt="Image" width="4498" height="3120" data-path="images/349e5186-participants_overview_cometchat_screens-7107cf19e034279cfb12ad115ec27951.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/THlknidvlbNx5AzI/images/a970ae80-participants_overview_cometchat_screens-cd1fcb2b5fa0eea095f507db33bbddbd.png?fit=max&auto=format&n=THlknidvlbNx5AzI&q=85&s=dd450320d810706951ccef0e856fc62a" alt="Image" width="4498" height="3120" data-path="images/a970ae80-participants_overview_cometchat_screens-cd1fcb2b5fa0eea095f507db33bbddbd.png" />
  </Tab>
</Tabs>

The `CallParticipants` is comprised of the following components:

| Components                                             | Description                                                                                                                 |
| ------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------- |
| CometChatList                                          | a reusable container component having title, search box, customisable background and a List View                            |
| [CometChatListItem](/ui-kit/react-native/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-native/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="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import { CometChatParticipants } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

### Actions

[Actions](/ui-kit/react-native/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. onItemPress

`onItemPress` is triggered when you click on a ListItem of the of the `CallParticipants` component. It does not have a default behavior. However, you can override its behavior using the following code snippet.

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import { CometChatParticipants } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const onItemPressHandler = (item: any) => {
        //code
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              onItemPress={onItemPressHandler}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

##### 2. onBack

The `onBack` function is built to respond when you press the back button in the AppBar. The back button is only displayed when the prop `showBackButton` is set to true.

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import { CometChatParticipants } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const onBackHandler = () => {
        //code
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              onBack={onBackHandler}
              showBackButton={true}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </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.

The `CallParticipants` component does not have any exposed filters.

***

### Events

[Events](/ui-kit/react-native/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 `CallParticipants` does not produce any events.

***

## Customization

To fit your app's design requirements, you have the ability to customize the appearance of the `CallParticipants` 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. CallLogParticipants Style

To customize the appearance, you can assign a `CallLogParticipantsStyle` object to the `CallParticipants` component.

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/8ODUflBxloB1jkgP/images/02fa71ed-participants_style_cometchat_screens-ab0ceb5d9c77f6951a9b04a93ea44882.png?fit=max&auto=format&n=8ODUflBxloB1jkgP&q=85&s=6380bee7c13ddaf931313211d3250228" alt="Image" width="4498" height="3120" data-path="images/02fa71ed-participants_style_cometchat_screens-ab0ceb5d9c77f6951a9b04a93ea44882.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/8YlylzCf9CehSaWO/images/ccfb7fbd-participants_style_cometchat_screens-df172f66180105566681daf6dd30310e.png?fit=max&auto=format&n=8YlylzCf9CehSaWO&q=85&s=bde93951d5cf42c44c96d0d38bfef0e5" alt="Image" width="4498" height="3120" data-path="images/ccfb7fbd-participants_style_cometchat_screens-df172f66180105566681daf6dd30310e.png" />
  </Tab>
</Tabs>

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

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      CallParticipantsStyleInterface,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const callLogParticipantsStyle: CallParticipantsStyleInterface = {
        titleColor: "#6851D6",
        backgroundColor: "#d2cafa",
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              callLogParticipantsStyle={callLogParticipantsStyle}
              listItemStyle={{ backgroundColor: "#d2cafa" }}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

The following properties are exposed by `CallLogParticipantsStyle`:

| Property              | Description                          | Code                                     |
| --------------------- | ------------------------------------ | ---------------------------------------- |
| **border**            | Used to set border                   | `border?: BorderStyleInterface,`         |
| **borderRadius**      | Used to set border radius            | `borderRadius?: number;`                 |
| **backgroundColor**   | Used to set background colour        | `background?: string;`                   |
| **height**            | Used to set height                   | `height?: number` \| `string;`           |
| **width**             | Used to set width                    | `width?: number` \| `string;`            |
| **titleFont**         | Used to set title font               | `titleFont?: FontStyleInterface,`        |
| **titleColor**        | Used to set title color              | `titleColor?: string;`                   |
| **dateTextFont**      | Used to set date text font           | `dateTextFont?: FontStyleInterface;`     |
| **dateTextColor**     | Used to set date text color          | `dateTextColor?: string;`                |
| **emptyTextColor**    | Used to set empty state text color   | `emptyTextColor?: string;`               |
| **emptyTextFont**     | Used to set empty state text font    | `emptyTextFont?: FontStyleInterface;`    |
| **backIconTint**      | Used to set back icon tint           | `backIconTint?: string;`                 |
| **durationTextFont**  | Used to set call duration text font  | `durationTextFont?: FontStyleInterface;` |
| **durationTextColor** | Used to set call duration text color | `durationTextColor?: string;`            |

##### 2. ListItem Style

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

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      ListItemStyleInterface,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const listItemStyle: ListItemStyleInterface = {
        titleColor: "red",
        backgroundColor: "#d2cafa",
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              listItemStyle={listItemStyle}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

##### 3. Avatar Style

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

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      ListItemStyleInterface,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const borderStyle: BorderStyleInterface = {
        borderWidth: 2,
        borderStyle: "solid",
        borderColor: "#cc5e95",
      };

      const avatarStyle: AvatarStyleInterface = {
        outerViewSpacing: 5,
        outerView: {
          borderWidth: 2,
          borderStyle: "dotted",
          borderColor: "blue",
        },
        border: borderStyle,
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              avatarStyle={avatarStyle}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </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 `CallParticipants` component.

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      DatePattern,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const datePattern: DatePattern = "dayDateFormat";

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              title="** Custom Title **"
              datePattern={datePattern}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/oaJbJ0bOxG69pJ1L/images/8a5d6f59-participants_func_cometchat_screens-2d5e387537ff8d2a7073665aa35118d7.png?fit=max&auto=format&n=oaJbJ0bOxG69pJ1L&q=85&s=fa7afd73fd325554d6145c1eb487250f" alt="Image" width="4498" height="3120" data-path="images/8a5d6f59-participants_func_cometchat_screens-2d5e387537ff8d2a7073665aa35118d7.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/bKHmaxDqzaJZWwLS/images/45447261-participants_func_cometchat_screens-7312920c3cac5a349da93f4a51e5a0ef.png?fit=max&auto=format&n=bKHmaxDqzaJZWwLS&q=85&s=bf8037a383bfd52019af4b19f75d31ee" alt="Image" width="4498" height="3120" data-path="images/45447261-participants_func_cometchat_screens-7312920c3cac5a349da93f4a51e5a0ef.png" />
  </Tab>
</Tabs>

***

Below is a list of customizations along with corresponding code snippets

| Property                                                     | Description                                       | Code                                            |
| ------------------------------------------------------------ | ------------------------------------------------- | ----------------------------------------------- |
| **title** <Tooltip tip="Not available">🛑</Tooltip>          | Used to set custom title                          | `title?: string`                                |
| **emptyStateText** <Tooltip tip="Not available">🛑</Tooltip> | Used to set custom empty state text               | `emptyStateText='Your Custom Empty State Text'` |
| **datePattern**                                              | Used to set custom date pattern                   | `datePattern?: DatePattern`                     |
| **call**                                                     | Call data object                                  | `call: CallLog;`                                |
| **showBackButton**                                           | Used to control the visibility of the back button | `showBackButton?: boolean`                      |
| **BackButton**                                               | Used to set custom back icon                      | `BackButton?: JSX.Element;`                     |
| **data**                                                     | Used to set list of participants                  | `data?: Participant[;`                          |

***

### 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 `CallParticipants` Component.

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/tiy_c-4NywbKIGIr/images/7d0a2d9b-participants_list_item_view_cometchat_screens-fafeba543dd74e5f4e1f5ea47f37f34f.png?fit=max&auto=format&n=tiy_c-4NywbKIGIr&q=85&s=66a5fd7f44cda2ee2b076d1cf3d7a449" alt="Image" width="4498" height="3120" data-path="images/7d0a2d9b-participants_list_item_view_cometchat_screens-fafeba543dd74e5f4e1f5ea47f37f34f.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/Xbd1mrZiWe1Pd3HE/images/8f7f31be-participants_list_item_view_cometchat_screens-b67b3b724e3886441659a025d72adc6f.png?fit=max&auto=format&n=Xbd1mrZiWe1Pd3HE&q=85&s=cc082679be1b7f9bb83698bb74d64bee" alt="Image" width="4498" height="3120" data-path="images/8f7f31be-participants_list_item_view_cometchat_screens-b67b3b724e3886441659a025d72adc6f.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      CometChatAvatar,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const getCustomListItemView = (props: { participant?: CometChat.User }) => {
        let user = props.participant;
        if (!user) {
          return <></>;
        }

        return (
          <View style={viewStyle}>
            <CometChatAvatar
              image={user.getAvatar() ? { uri: user.getAvatar() } : undefined}
              name={user.getName()}
            />

            <View>
              <Text style={{ color: "black", fontWeight: "bold" }}>
                {user.getName()}
              </Text>
              {/* <Text style={{color: '#667'}}>{user.getStatus()}</Text> */}
            </View>
          </View>
        );
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              ListItemView={getCustomListItemView}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

#### SubtitleView

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

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/Mh-tK73gC5erLrBQ/images/f8f391bf-participants_subtitle_view_cometchat_screens-77ee8f53abf6bbbddd8dcc61383d7c8a.png?fit=max&auto=format&n=Mh-tK73gC5erLrBQ&q=85&s=5f0f371cd5cd4ce9e209ee1f9b375767" alt="Image" width="4498" height="3120" data-path="images/f8f391bf-participants_subtitle_view_cometchat_screens-77ee8f53abf6bbbddd8dcc61383d7c8a.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/sVDw7GNAn28WGWte/images/4bbe5708-participants_subtitle_view_cometchat_screens-916e89741de1d909cd9d909fcfb43105.png?fit=max&auto=format&n=sVDw7GNAn28WGWte&q=85&s=128aa4edaf1aa5fd5aebb045b900db7e" alt="Image" width="4498" height="3120" data-path="images/4bbe5708-participants_subtitle_view_cometchat_screens-916e89741de1d909cd9d909fcfb43105.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      CometChatAvatar,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const getCustomSubtitleView = (props: { participant?: CometChat.User }) => {
        return <Text>** Custom Subtitle View **</Text>;
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              SubtitleView={getCustomSubtitleView}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

#### TailView

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

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/KQU96uDrdF-ESW1d/images/2de9d014-participants_tail_view_cometchat_screens-e09bda35659ce14c385e80d9ed6c3d88.png?fit=max&auto=format&n=KQU96uDrdF-ESW1d&q=85&s=0a982e7b7e4ae71bac82c285c159eba0" alt="Image" width="4498" height="3120" data-path="images/2de9d014-participants_tail_view_cometchat_screens-e09bda35659ce14c385e80d9ed6c3d88.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/1W9AWrFs7khmFUQr/images/c462add5-participants_tail_view_cometchat_screens-a36d9c6eeb7bb8d3cf6ee27df352ae5e.png?fit=max&auto=format&n=1W9AWrFs7khmFUQr&q=85&s=8e6c819567f4d66f4baf2f12d339ee4b" alt="Image" width="4498" height="3120" data-path="images/c462add5-participants_tail_view_cometchat_screens-a36d9c6eeb7bb8d3cf6ee27df352ae5e.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      CometChatAvatar,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const getCustomTailView = (param: any) => {
        return <Image style={{ tintColor: "#6851D6" }} source={Call}></Image>;
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              TailView={getCustomTailView}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

#### EmptyStateView

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

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/Xbd1mrZiWe1Pd3HE/images/8f79e2a2-participants_empty_view_cometchat_screens-527a66bb24737151eb741cf95f7970a9.png?fit=max&auto=format&n=Xbd1mrZiWe1Pd3HE&q=85&s=e34001d2fbfea8fe1cd4055803040adc" alt="Image" width="4498" height="3120" data-path="images/8f79e2a2-participants_empty_view_cometchat_screens-527a66bb24737151eb741cf95f7970a9.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/t35Dbaum6Rkuz_d5/images/1680ac72-participants_empty_view_cometchat_screens-c7e699e887d2328d5a8db7e6a6b210c9.png?fit=max&auto=format&n=t35Dbaum6Rkuz_d5&q=85&s=298e30aa616c1e78329ec7d9781ab2cd" alt="Image" width="4498" height="3120" data-path="images/1680ac72-participants_empty_view_cometchat_screens-c7e699e887d2328d5a8db7e6a6b210c9.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatParticipants,
      CometChatAvatar,
    } from "@cometchat/chat-uikit-react-native";
    import {
      CallLog,
      CallLogRequestBuilder,
    } from "@cometchat/calls-sdk-react-native";

    function App(): React.JSX.Element {
      const [loggedInUser, setLoggedInUser] = useState<CometChat.User>();
      const [callLog, setCallLog] = useState<CallLog>();
      useEffect(() => {
        //code
        CometChatUIKit.login({ uid: "uid" })
          .then(async (user: CometChat.User) => {
            setLoggedInUser(user);
            const callLogRequest = new CallLogRequestBuilder()
              .setLimit(1)
              .setCallStatus("cancelled")
              .setAuthToken(user!.getAuthToken())
              .build();

            callLogRequest
              .fetchNext()
              .then((callLogs: CallLog[]) => {
                setCallLog(callLogs[0]);
              })
              .catch(() => {
                //handle error
              });
          })
          .catch((error: any) => {
            //handle error
          });
      }, []);

      const emptyViewStyle: StyleProp<ViewStyle> = {
        flex: 1,
        alignItems: "center",
        justifyContent: "center",
        padding: 10,
        borderColor: "black",
        borderWidth: 1,
        backgroundColor: "#E8EAE9",
        marginLeft: 2,
        marginRight: 2,
        marginBottom: 30,
      };

      const getEmptyStateView = () => {
        return (
          <View style={emptyViewStyle}>
            <Text style={{ fontSize: 80, color: "black" }}>Empty</Text>
          </View>
        );
      };

      return (
        <>
          {callLog && (
            <CometChatParticipants
              call={callLog}
              data={callLog!.getParticipants()}
              EmptyStateView={getEmptyStateView}
            ></CometChatParticipants>
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***
