pass var
This commit is contained in:
@@ -227,6 +227,7 @@ export function Link({
|
|||||||
onPress: outerOnPress,
|
onPress: outerOnPress,
|
||||||
onLongPress: outerOnLongPress,
|
onLongPress: outerOnLongPress,
|
||||||
download,
|
download,
|
||||||
|
shouldProxy,
|
||||||
...rest
|
...rest
|
||||||
}: LinkProps) {
|
}: LinkProps) {
|
||||||
const {href, isExternal, onPress, onLongPress} = useLink({
|
const {href, isExternal, onPress, onLongPress} = useLink({
|
||||||
@@ -235,6 +236,7 @@ export function Link({
|
|||||||
action,
|
action,
|
||||||
onPress: outerOnPress,
|
onPress: outerOnPress,
|
||||||
onLongPress: outerOnLongPress,
|
onLongPress: outerOnLongPress,
|
||||||
|
shouldProxy: shouldProxy,
|
||||||
})
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -287,6 +289,7 @@ export function InlineLinkText({
|
|||||||
shareOnLongPress,
|
shareOnLongPress,
|
||||||
disableUnderline,
|
disableUnderline,
|
||||||
overridePresentation,
|
overridePresentation,
|
||||||
|
shouldProxy,
|
||||||
...rest
|
...rest
|
||||||
}: InlineLinkProps) {
|
}: InlineLinkProps) {
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
@@ -300,6 +303,7 @@ export function InlineLinkText({
|
|||||||
onLongPress: outerOnLongPress,
|
onLongPress: outerOnLongPress,
|
||||||
shareOnLongPress,
|
shareOnLongPress,
|
||||||
overridePresentation,
|
overridePresentation,
|
||||||
|
shouldProxy: shouldProxy,
|
||||||
})
|
})
|
||||||
const {
|
const {
|
||||||
state: hovered,
|
state: hovered,
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ export function useOpenLink() {
|
|||||||
url,
|
url,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
console.log('clicked:', shouldProxy)
|
||||||
if (shouldProxy) {
|
if (shouldProxy) {
|
||||||
url = createProxiedUrl(url)
|
url = createProxiedUrl(url)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user