Info:
This is documentation for Stream Chat React Native SDK v9, which is no longer actively maintained. For up-to-date documentation, see the latest version (v10).

ImageAttachmentUploadPreview

ImageAttachmentUploadPreview renders pending image uploads with an overlay indicator and remove control.

Internally it renders the image background preview and picks the correct progress/retry state indicator from upload metadata.

Props

Implements UploadAttachmentPreviewProps<LocalImageAttachment>.

Prop Description Type
attachment Image attachment item being previewed. LocalImageAttachment
handleRetry Retry callback for failed uploads. function
removeAttachments Removes attachment(s) by local attachment id. function