We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4d258 commit b77752dCopy full SHA for b77752d
package/src/components/MessageInput/components/AttachmentPreview/ImageAttachmentUploadPreview.tsx
@@ -49,6 +49,10 @@ export const ImageAttachmentUploadPreview = ({
49
setLoading(false);
50
}, []);
51
52
+ const onErrorHandler = useCallback(() => {
53
+ setLoading(false);
54
+ }, []);
55
+
56
return (
57
<View style={[styles.itemContainer, itemContainer]} testID={'image-attachment-upload-preview'}>
58
<AttachmentUploadProgressIndicator
@@ -57,6 +61,7 @@ export const ImageAttachmentUploadPreview = ({
61
type={indicatorType}
62
>
59
63
<Image
64
+ onError={onErrorHandler}
60
65
onLoadEnd={onLoadEndHandler}
66
resizeMode='cover'
67
source={{ uri: attachment.localMetadata.previewUri ?? attachment.image_url }}
0 commit comments