From aad8d12ededa49d5c69e4ddf85993425723be8dd Mon Sep 17 00:00:00 2001
From: dan <dan.abramov@gmail.com>
Date: Tue, 10 Oct 2023 23:02:00 +0100
Subject: Fix MobX crash for Android lightbox (#1668)

* Fix MobX crash for Android lightbox

* Reorder props to match between forks
---
 .../com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx     | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx')

diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
index 1bd24a841..cd550670c 100644
--- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
+++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx
@@ -143,6 +143,7 @@ const ImageItem = ({imageSrc, onZoom, onRequestClose}: Props) => {
           accessibilityHint="">
           <AnimatedImage
             contentFit="contain"
+            // NOTE: Don't pass imageSrc={imageSrc} or MobX will break.
             source={{uri: imageSrc.uri}}
             style={[styles.image, animatedStyle]}
             onLoad={() => setLoaded(true)}
-- 
cgit 1.4.1

