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.android.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.android.tsx')
-rw-r--r-- | src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx index 6fe7854bc..513524864 100644 --- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx +++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.android.tsx @@ -307,8 +307,9 @@ const ImageItem = ({ )} <GestureDetector gesture={composedGesture}> <AnimatedImage - source={imageSrc} contentFit="contain" + // NOTE: Don't pass imageSrc={imageSrc} or MobX will break. + source={{uri: imageSrc.uri}} style={[styles.image, animatedStyle]} accessibilityLabel={imageSrc.alt} accessibilityHint="" |