diff options
author | dan <dan.abramov@gmail.com> | 2023-10-10 23:02:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-10 23:02:00 +0100 |
commit | aad8d12ededa49d5c69e4ddf85993425723be8dd (patch) | |
tree | 180ae33fd03071a939c425dcf46b18d497f5568c /src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx | |
parent | 209d8b683c730a14d23c7f57c3ec8c2e9daa2397 (diff) | |
download | voidsky-aad8d12ededa49d5c69e4ddf85993425723be8dd.tar.zst |
Fix MobX crash for Android lightbox (#1668)
* Fix MobX crash for Android lightbox * Reorder props to match between forks
Diffstat (limited to 'src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx')
-rw-r--r-- | src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
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)} |