Skip to content

Commit 6664aa5

Browse files
committed
fix(image-native): click enlarged to close
1 parent 9a731ac commit 6664aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/image-native/src/components/ImageComponents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ export const ImageEnlarged: FunctionComponent<ImageEnlargedProps> = props => {
260260
style={styles.backdrop}
261261
>
262262
<Pressable
263-
onPress={null}
263+
onPress={() => setEnlarged(false)}
264264
style={{
265265
// The child (FastImage) needs "flexGrow: 1" so images on Android are not blurry.
266266
// Therefore we explicitly have to set width / height here to prevent the image from taking up the whole screen, which in turn prevents the user from closing the modal (bc parent Pressable will not be clickable).

0 commit comments

Comments
 (0)