Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(router): add target, rel, and download to Link component #24908

Merged
merged 6 commits into from
Oct 18, 2023

Conversation

EvanBacon
Copy link
Contributor

Why

Resolve ENG-10305

How

Add support for the target, rel, and download attributes. The only caveat is that if you use <Link asChild><Text /></Link> the values won't work, they would need to be transformed to hrefAttrs: { ... } for React Native Web.

Test Plan

Added tests for the rendering on native and web.

@linear
Copy link

linear bot commented Oct 17, 2023

ENG-10305 Add target, rel, download props to Link

These are available as hrefAttrs={} on the React Native web Text component. We should expose them as top-level props.

@EvanBacon EvanBacon changed the title feat(router): add additional web props feat(router): add target, rel, and download to Link component Oct 17, 2023
@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Oct 17, 2023
EvanBacon and others added 2 commits October 17, 2023 13:59
Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Oct 17, 2023
@EvanBacon EvanBacon merged commit ed15738 into main Oct 18, 2023
13 checks passed
@EvanBacon EvanBacon deleted the @evanbacon/router/add-additional-web-props branch October 18, 2023 17:09
marklawlor pushed a commit that referenced this pull request Oct 30, 2023
# Why

Resolve ENG-10305

# How

Add support for the `target`, `rel`, and `download` attributes. The only
caveat is that if you use `<Link asChild><Text /></Link>` the values
won't work, they would need to be transformed to `hrefAttrs: { ... }`
for React Native Web.

# Test Plan

Added tests for the rendering on native and web.

---------

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants