* use asAnchor on external embeds * add noFeedback back, fix TouchableWithoutFeedback anchor handlingzio/stable
parent
7e1dac0439
commit
bf00d49863
|
@ -89,12 +89,11 @@ export const Link = observer(function Link({
|
||||||
<TouchableWithoutFeedback
|
<TouchableWithoutFeedback
|
||||||
testID={testID}
|
testID={testID}
|
||||||
onPress={onPress}
|
onPress={onPress}
|
||||||
// @ts-ignore web only -prf
|
|
||||||
href={asAnchor ? sanitizeUrl(href) : undefined}
|
|
||||||
accessible={accessible}
|
accessible={accessible}
|
||||||
accessibilityRole="link"
|
accessibilityRole="link"
|
||||||
{...props}>
|
{...props}>
|
||||||
<View style={style}>
|
{/* @ts-ignore web only -prf */}
|
||||||
|
<View style={style} href={asAnchor ? sanitizeUrl(href) : undefined}>
|
||||||
{children ? children : <Text>{title || 'link'}</Text>}
|
{children ? children : <Text>{title || 'link'}</Text>}
|
||||||
</View>
|
</View>
|
||||||
</TouchableWithoutFeedback>
|
</TouchableWithoutFeedback>
|
||||||
|
|
|
@ -181,9 +181,10 @@ export function PostEmbeds({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
|
asAnchor
|
||||||
|
noFeedback
|
||||||
style={[styles.extOuter, pal.view, pal.border, style]}
|
style={[styles.extOuter, pal.view, pal.border, style]}
|
||||||
href={link.uri}
|
href={link.uri}>
|
||||||
noFeedback>
|
|
||||||
<ExternalLinkEmbed link={link} />
|
<ExternalLinkEmbed link={link} />
|
||||||
</Link>
|
</Link>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue