Skip to content

Commit a88af85

Browse files
committed
fix: infinite image loading issue
1 parent b0fda59 commit a88af85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Attachment/Gallery.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ const GalleryImageThumbnail = <
458458
setLoadingImage(false);
459459
setLoadingImageError(true);
460460
}}
461-
onLoadEnd={() => setLoadingImage(false)}
461+
onLoadEnd={() => setTimeout(() => setLoadingImage(false), 0)}
462462
onLoadStart={() => setLoadingImage(true)}
463463
resizeMode={thumbnail.resizeMode}
464464
style={[

0 commit comments

Comments
 (0)