Add accessibilityRole to single images (#9148)

This commit is contained in:
Samuel Newman
2025-10-10 19:31:12 +03:00
committed by GitHub
parent 54b8eacba1
commit 0dd71fb087
@@ -204,6 +204,7 @@ export function AutoSizedImage({
// alt here is what screen readers actually use
accessibilityLabel={image.alt}
accessibilityHint={_(msg`Views full image`)}
accessibilityRole="button"
style={[
a.w_full,
a.rounded_md,
@@ -226,6 +227,7 @@ export function AutoSizedImage({
// alt here is what screen readers actually use
accessibilityLabel={image.alt}
accessibilityHint={_(msg`Views full image`)}
accessibilityRole="button"
style={[a.h_full]}>
{contents}
</Pressable>