* 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
|
||||
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>
|
||||
|
|
|
@ -181,9 +181,10 @@ export function PostEmbeds({
|
|||
|
||||
return (
|
||||
<Link
|
||||
asAnchor
|
||||
noFeedback
|
||||
style={[styles.extOuter, pal.view, pal.border, style]}
|
||||
href={link.uri}
|
||||
noFeedback>
|
||||
href={link.uri}>
|
||||
<ExternalLinkEmbed link={link} />
|
||||
</Link>
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue