Add hrefAttrs to Link

This commit is contained in:
Eric Bailey
2024-01-16 10:43:31 -06:00
parent ce049f1e1b
commit 1e02cde581
+3 -1
View File
@@ -145,8 +145,10 @@ export function Link({
href={href} href={href}
onPress={onPress} onPress={onPress}
{...web({ {...web({
target: isExternal ? '_blank' : undefined, hrefAttrs: {
target: isExternal ? 'blank' : undefined,
rel: isExternal ? 'noopener noreferrer' : undefined, rel: isExternal ? 'noopener noreferrer' : undefined,
},
dataSet: { dataSet: {
// default to no underline, apply this ourselves // default to no underline, apply this ourselves
noUnderline: '1', noUnderline: '1',