about summary refs log tree commit diff
path: root/src/view/com/util/Link.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-07-21 17:17:35 -0500
committerGitHub <noreply@github.com>2023-07-21 17:17:35 -0500
commitbf00d498638c881ae2738b255f018686ee374ce7 (patch)
tree737a36238b7c5840acbdf25b908a9f51a382ac1a /src/view/com/util/Link.tsx
parent7e1dac04390cc5b16988e9e2d1263e301f5ecfba (diff)
downloadvoidsky-bf00d498638c881ae2738b255f018686ee374ce7.tar.zst
#995 use `asAnchor` on external embeds (#1043)
* use asAnchor on external embeds

* add noFeedback back, fix TouchableWithoutFeedback anchor handling
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r--src/view/com/util/Link.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx
index 454fd7c21..e428960fe 100644
--- a/src/view/com/util/Link.tsx
+++ b/src/view/com/util/Link.tsx
@@ -89,12 +89,11 @@ export const Link = observer(function Link({
       <TouchableWithoutFeedback
         testID={testID}
         onPress={onPress}
-        // @ts-ignore web only -prf
-        href={asAnchor ? sanitizeUrl(href) : undefined}
         accessible={accessible}
         accessibilityRole="link"
         {...props}>
-        <View style={style}>
+        {/* @ts-ignore web only -prf */}
+        <View style={style} href={asAnchor ? sanitizeUrl(href) : undefined}>
           {children ? children : <Text>{title || 'link'}</Text>}
         </View>
       </TouchableWithoutFeedback>