fix accessibility in AutoSizedImage
This commit is contained in:
parent
77b21dfb1c
commit
0122cdb0b6
1 changed files with 4 additions and 6 deletions
|
@ -56,16 +56,14 @@ export function AutoSizedImage({
|
|||
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=""
|
||||
/>
|
||||
{children}
|
||||
</Pressable>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue