> ## 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 Log Recordings

> Call Log Recordings — CometChat documentation.

## Overview

The `CometChatRecordings` is a [Component](/ui-kit/react-native/v4/components-overview#components) that shows a paginated list of recordings of a particular call. This allows the user to see all the recordings along with the duration as well as a download link using which one can download the recording.

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

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/bUk-WwSNpBXF92Yc/images/dc8ab28d-call_recordings_overview_cometchat_screens-b6d2be89368c8aa1d53ceabbe9e27b01.png?fit=max&auto=format&n=bUk-WwSNpBXF92Yc&q=85&s=9eb17ab819aa59099327abaef80d4011" alt="Image" width="4498" height="3120" data-path="images/dc8ab28d-call_recordings_overview_cometchat_screens-b6d2be89368c8aa1d53ceabbe9e27b01.png" />
  </Tab>
</Tabs>

The `CallRecordings` 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 { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      return (
        <>{callLog && <CometChatRecordings data={callLog.getRecordings()} />}</>
      );
    }
    ```
  </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 `CallRecordings` 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 { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

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

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              onItemPress={onItemPressHandler}
            />
          )}
        </>
      );
    }
    ```
  </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 { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

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

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              onItemPress={onItemPressHandler}
              onBack={onBackHandler}
              showBackButton={true}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

##### 3. onDownloadIconPress

`onDownloadIconPress` is triggered when you click on the download of the of the `CallRecordings` component. 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 { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

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

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              onDownloadIconPress={onDownloadIconPressHandler}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

##### 4. onError

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

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      const onErrorHandler = (error: CometChat.CometChatException) => {
        //code
      };

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              onError={onErrorHandler}
            />
          )}
        </>
      );
    }
    ```
  </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 `CallRecordings` 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 `CallRecordings` does not produce any events.

***

## Customization

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

If you want to apply customized styles to the `ListItemStyle` component within the `CallRecordings` 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 {
      CometChatRecordings,
      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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .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 && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              listItemStyle={listItemStyle}
            />
          )}
        </>
      );
    }
    ```
  </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 `CallRecordings` component.

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import { CometChatRecordings } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              title="** Custom Title **"
              showBackButton={true}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/_oiGBuX1qG3S8Eo5/images/62852753-call_recordings_func_cometchat_screens-476836a389faf65d2b5d854b227422d9.png?fit=max&auto=format&n=_oiGBuX1qG3S8Eo5&q=85&s=d0a903cd6572648b7179504e80abe4b3" alt="Image" width="4498" height="3120" data-path="images/62852753-call_recordings_func_cometchat_screens-476836a389faf65d2b5d854b227422d9.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/czi9y0KbDwCW-4OY/images/6ef0122d-call_recordings_func_cometchat_screens-6a837e32d9917be84087eac5b9b11306.png?fit=max&auto=format&n=czi9y0KbDwCW-4OY&q=85&s=21f70eb30d04883e10cd6b62fca76f2f" alt="Image" width="4498" height="3120" data-path="images/6ef0122d-call_recordings_func_cometchat_screens-6a837e32d9917be84087eac5b9b11306.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='Your Custom Title'`              |
| **downloadIcon**                                    | Used to set custom download icon                                             | `downloadIcon?: ImageType`               |
| **datePattern**                                     | Used to set custom date pattern                                              | `datePattern={DatePatterns.DayDateTime}` |
| **data**                                            | Used to set the list oif Recordings                                          | `data: Recording[];`                     |
| **showBackButton**                                  | Used to control the visibility of the back button                            | `showBackButton?: boolean`               |
| **BackButton**                                      | Used to set custom Back Button                                               | `BackButton?: JSX.Element`               |
| **hideDownloadButton**                              | Used to control the visibility of the download button in the user interface. | `hideDownloadButton={true}`              |

***

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

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/-YC7tOebleeoFejE/images/e6a6cdd0-call_recordings_list_item_view_cometchat_screens-52ae5591e2a2273a7a8fc3ff6d3b9bb3.png?fit=max&auto=format&n=-YC7tOebleeoFejE&q=85&s=ab5ee7c65566272a889f290e346d4f9c" alt="Image" width="4498" height="3120" data-path="images/e6a6cdd0-call_recordings_list_item_view_cometchat_screens-52ae5591e2a2273a7a8fc3ff6d3b9bb3.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/t35Dbaum6Rkuz_d5/images/163a8722-call_recordings_list_item_view_cometchat_screens-86fe22c531026f4a5302ee4c763fdf90.png?fit=max&auto=format&n=t35Dbaum6Rkuz_d5&q=85&s=c37aed4592bebf60ecba5077adad13d4" alt="Image" width="4498" height="3120" data-path="images/163a8722-call_recordings_list_item_view_cometchat_screens-86fe22c531026f4a5302ee4c763fdf90.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatRecordings,
      CometChatListItem,
    } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      const getListItemView = (param: { recording?: Recording }) => {
        const recording = param.recording;
        return (
          <>
            <CometChatListItem
              id={recording.getRid()}
              title={recording.getRid()}
              TailView={() => {
                return <Text style={{ color: "red" }}>Delete</Text>;
              }}
            />
            <View
              style={{
                borderBottomColor: "black",
                borderBottomWidth: StyleSheet.hairlineWidth,
              }}
            />
          </>
        );
      };

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              showBackButton={true}
              ListItemView={getListItemView}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

#### SubtitleView

You can customize the subtitle view for each Call Recordings item to meet your requirements

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/D1t_n71f5KROvakA/images/5f925127-call_recordings_subtitle_view_cometchat_screens-0ce31e44777dd7961da729664b1a9549.png?fit=max&auto=format&n=D1t_n71f5KROvakA&q=85&s=7d1fa85841552f202b7e5c31d8e7c362" alt="Image" width="4498" height="3120" data-path="images/5f925127-call_recordings_subtitle_view_cometchat_screens-0ce31e44777dd7961da729664b1a9549.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/KQU96uDrdF-ESW1d/images/3133fd9d-call_recordings_subtitle_view_cometchat_screens-b2ae468e98bf9011508fce200751cf50.png?fit=max&auto=format&n=KQU96uDrdF-ESW1d&q=85&s=b5e97c6d5b557fda119fa41a0e050944" alt="Image" width="4498" height="3120" data-path="images/3133fd9d-call_recordings_subtitle_view_cometchat_screens-b2ae468e98bf9011508fce200751cf50.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatRecordings,
      CometChatListItem,
    } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      function formatTime(timestamp: number) {
        const date = new Date(timestamp * 1000);
        return date.toLocaleString();
      }

      const getSubtitleView = (param: { recording?: Recording }) => {
        if (!param.recording) {
          return <></>;
        }
        return (
          <Text
            style={{
              fontSize: 15,
              color: "grey",
              shadowColor: "red",
            }}
          >
            {formatTime(param.recording.getStartTime())}
          </Text>
        );
      };

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              showBackButton={true}
              SubtitleView={getSubtitleView}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***

#### TailView

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

<Tabs>
  <Tab title="iOS">
    <img src="https://mintcdn.com/cometchat-22654f5b/T-kVUXtubs0NtFU5/images/cda5b627-call_recordings_tail_view_cometchat_screens-56b7238bf489af66150706a734242221.png?fit=max&auto=format&n=T-kVUXtubs0NtFU5&q=85&s=1709b334cad2ca63cd85b32ec5c49ccd" alt="Image" width="4498" height="3120" data-path="images/cda5b627-call_recordings_tail_view_cometchat_screens-56b7238bf489af66150706a734242221.png" />
  </Tab>

  <Tab title="Android">
    <img src="https://mintcdn.com/cometchat-22654f5b/t35Dbaum6Rkuz_d5/images/17590040-call_recordings_tail_view_cometchat_screens-87237cbafe055aca40c352f2a4481b94.png?fit=max&auto=format&n=t35Dbaum6Rkuz_d5&q=85&s=7ac8caf66ac9414ab579c2cc9eea4d17" alt="Image" width="4498" height="3120" data-path="images/17590040-call_recordings_tail_view_cometchat_screens-87237cbafe055aca40c352f2a4481b94.png" />
  </Tab>
</Tabs>

<Tabs>
  <Tab title="App.tsx">
    ```tsx theme={null}
    import { CometChat, CometChatCalls } from "@cometchat/chat-sdk-react-native";
    import {
      CometChatRecordings,
      CometChatListItem,
    } 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)
              .setAuthToken(user!.getAuthToken())
              .setHasRecording(true)
              .build();

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

      const getTailView = (param: { recording?: Recording }) => {
        return <Text style={{ color: "red" }}>Delete</Text>;
      };

      return (
        <>
          {callLog && (
            <CometChatRecordings
              data={callLog.getRecordings()}
              TailView={getTailView}
            />
          )}
        </>
      );
    }
    ```
  </Tab>
</Tabs>

***
