This is beta documentation for Stream Chat React Native SDK v9. For the latest stable version, see the latest version (v8)
.
AudioRecordingButton
AudioRecordingButton is the mic button for starting/controlling recording gestures.
Internally it handles press/long-press gesture logic, slide-to-cancel and slide-to-lock thresholds, permission prompts, and haptic feedback.
Props
buttonSize
Mic button size.
| Type |
|---|
number |
handleLongPress
Custom long-press handler.
| Type |
|---|
() => void |
handlePress
Custom press handler.
| Type |
|---|
() => void |
cancellableDuration
Controls whether recording can be canceled by duration/gesture behavior.
| Type |
|---|
boolean |
Context-backed override props
asyncMessagesMinimumPressDurationasyncMessagesSlideToCancelDistanceasyncMessagesLockDistanceasyncMessagesMultiSendEnabledaudioRecorderManagerstartVoiceRecordingdeleteVoiceRecordinguploadVoiceRecordingrecordingstatus