Skip to content

Commit

Permalink
Merge branch 'elijah-wright-patch-1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Oct 31, 2023
2 parents 84ee640 + 1acf496 commit e1dcedd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/view/com/util/images/AutoSizedImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ export function AutoSizedImage({

if (onPress || onLongPress || onPressIn) {
return (
// disable a11y rule because in this case we want the tags on the image (#1640)
// eslint-disable-next-line react-native-a11y/has-valid-accessibility-descriptors
<Pressable
onPress={onPress}
onLongPress={onLongPress}
onPressIn={onPressIn}
style={[styles.container, style]}
accessible={true}
accessibilityRole="button"
accessibilityLabel={alt || 'Image'}
accessibilityHint="Tap to view fully">
style={[styles.container, style]}>
<Image
style={[styles.image, {aspectRatio}]}
source={uri}
accessible={false} // Must set for `accessibilityLabel` to work
accessible={true} // Must set for `accessibilityLabel` to work
accessibilityIgnoresInvertColors
accessibilityLabel={alt}
accessibilityHint="Tap to view fully"
/>
{children}
</Pressable>
Expand Down

0 comments on commit e1dcedd

Please sign in to comment.