# AudioRecorder

`AudioRecorder` orchestrates voice recording states inside `MessageComposer`.

Internally it switches between in-progress recording UI and preview/controls (`delete`, `stop`, `upload`) based on recorder status and lock state.

## Props

`AudioRecorder` accepts partial context overrides.

| Prop                 | Description                                     | Type                   |
| -------------------- | ----------------------------------------------- | ---------------------- |
| `slideToCancelStyle` | Custom style for the slide-to-cancel container. | `StyleProp<ViewStyle>` |

### Context-backed override props

- `audioRecorderManager`
- `audioRecordingSendOnComplete`
- `stopVoiceRecording`
- `deleteVoiceRecording`
- `uploadVoiceRecording`
- `duration`
- `micLocked`
- `status`


---

This page was last updated at 2026-05-29T10:51:37.755Z.

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