···52525353 if (onPress || onLongPress || onPressIn) {
5454 return (
5555+ // disable a11y rule because in this case we want the tags on the image (#1640)
5656+ // eslint-disable-next-line react-native-a11y/has-valid-accessibility-descriptors
5557 <Pressable
5658 onPress={onPress}
5759 onLongPress={onLongPress}
5860 onPressIn={onPressIn}
5959- style={[styles.container, style]}
6060- accessible={true}
6161- accessibilityRole="button"
6262- accessibilityLabel={alt || 'Image'}
6363- accessibilityHint="Tap to view fully">
6161+ style={[styles.container, style]}>
6462 <Image
6563 style={[styles.image, {aspectRatio}]}
6664 source={uri}
6767- accessible={false} // Must set for `accessibilityLabel` to work
6565+ accessible={true} // Must set for `accessibilityLabel` to work
6866 accessibilityIgnoresInvertColors
6767+ accessibilityLabel={alt}
6868+ accessibilityHint="Tap to view fully"
6969 />
7070 {children}
7171 </Pressable>