| 3560e0fb | 29-Mar-2023 |
Evan Bacon <[email protected]> |
feat(expo-image): add alt tag for web seo (#21884)
# Why
React Native Web uses `accessibilityLabel` for setting `alt`, this isn't
great though because `alt` is a known property and web developer
feat(expo-image): add alt tag for web seo (#21884)
# Why
React Native Web uses `accessibilityLabel` for setting `alt`, this isn't
great though because `alt` is a known property and web developers are
often looking for it. This PR adds the inverse, where setting `alt` can
automatically fill in `accessibilityLabel`. Users can now `<Image
source="./img.png" alt="a happy bunny" />`. This is required for web
link traversal where an image is wrapped in an anchor tag, e.g. `<a
href="/other"><img alt="without me the link won't be crawled"
src="./img.png"></img></a>`.
---------
Co-authored-by: Expo Bot <[email protected]>
Co-authored-by: aleqsio <[email protected]>
show more ...
|