Compare commits

...

2 Commits

Author SHA1 Message Date
Dan Abramov d1b0772999 Reorder props to match between forks 2023-10-10 22:58:41 +01:00
Dan Abramov 2b62d43878 Fix MobX crash for Android lightbox 2023-10-10 22:56:49 +01:00
2 changed files with 3 additions and 1 deletions
@@ -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=""
@@ -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)}