This is documentation for
Stream Chat React Native SDK v5, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v8)
.
AudioAttachment
Component to render the Audio Attachment controls within the MessageList and MessageInput.
This is the default component provided to the prop 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 |