Merge branch 'patch-1' of https://github.com/elijah-wright/social-app into elijah-wright-patch-1
commit
dbbd71c6d0
|
@ -56,16 +56,14 @@ export function AutoSizedImage({
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
onLongPress={onLongPress}
|
onLongPress={onLongPress}
|
||||||
onPressIn={onPressIn}
|
onPressIn={onPressIn}
|
||||||
style={[styles.container, style]}
|
style={[styles.container, style]}>
|
||||||
accessible={true}
|
|
||||||
accessibilityRole="button"
|
|
||||||
accessibilityLabel={alt || 'Image'}
|
|
||||||
accessibilityHint="Tap to view fully">
|
|
||||||
<Image
|
<Image
|
||||||
style={[styles.image, {aspectRatio}]}
|
style={[styles.image, {aspectRatio}]}
|
||||||
source={uri}
|
source={uri}
|
||||||
accessible={false} // Must set for `accessibilityLabel` to work
|
accessible={true} // Must set for `accessibilityLabel` to work
|
||||||
accessibilityIgnoresInvertColors
|
accessibilityIgnoresInvertColors
|
||||||
|
accessibilityLabel={alt}
|
||||||
|
accessibilityHint="Tap to view fully"
|
||||||
/>
|
/>
|
||||||
{children}
|
{children}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|
Loading…
Reference in New Issue