Merge branch 'patch-1' of https://github.com/elijah-wright/social-app into elijah-wright-patch-1

zio/stable
Paul Frazee 2023-10-30 17:03:34 -07:00
commit dbbd71c6d0
1 changed files with 4 additions and 6 deletions

View File

@ -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="Tap to view fully"
/>
{children}
</Pressable>