# AudioAttachment

Component to render the Audio Attachment controls within the [MessageList](/chat/docs/sdk/react-native/v6/ui-components/message-list/) and [MessageInput](/chat/docs/sdk/react-native/v6/ui-components/message-input/).

This is the default component provided to the prop [`AudioAttachment`](/chat/docs/sdk/react-native/v6/core-components/channel#audioattachment/) on the `Channel` component.

## Props

### `item`

| Type                                         |
| -------------------------------------------- |
| object(duration, progress, paused, id, file) |

### `onLoad`

| Type                                        |
| ------------------------------------------- |
| `(index: string, duration: number) => void` |

### `onProgress`

| Type                                                              |
| ----------------------------------------------------------------- |
| `(index: string, currentTime?: number, hasEnd?: boolean) => void` |

### `onPlayPause`

| Type                                              |
| ------------------------------------------------- |
| `(index: string, pausedStatus?: boolean) => void` |

### `testID`

| Type   |
| ------ |
| String |


---

This page was last updated at 2026-04-22T14:09:37.630Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/audio-attachment/](https://getstream.io/chat/docs/sdk/react-native/v6/ui-components/audio-attachment/).