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

Prop Description Type
buttonSize Mic button size. number
handleLongPress Custom long-press handler. () => void
handlePress Custom press handler. () => void
cancellableDuration Controls whether recording can be canceled by duration/gesture behavior. boolean

Context-backed override props

  • asyncMessagesMinimumPressDuration
  • asyncMessagesSlideToCancelDistance
  • asyncMessagesLockDistance
  • audioRecordingSendOnComplete
  • audioRecorderManager
  • startVoiceRecording
  • deleteVoiceRecording
  • uploadVoiceRecording
  • recording
  • status