From 25e390c54cc2bec55e0dc40ede215de3d33cc98c Mon Sep 17 00:00:00 2001 From: Ruriko Araki Date: Tue, 12 Nov 2024 14:40:17 -0800 Subject: [PATCH] Add comment --- packages/components/Link/src/Link.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/components/Link/src/Link.tsx b/packages/components/Link/src/Link.tsx index d96a18f443..2f81c02990 100644 --- a/packages/components/Link/src/Link.tsx +++ b/packages/components/Link/src/Link.tsx @@ -43,6 +43,9 @@ export const Link = compose({ // This is a workaround for the issue. Once those issues are resolved, supportsA11yTextInText can be removed. const supportsA11yTextInText = Platform.OS !== 'android'; + // MacOS Text component doesn't handle interaction events like hover etc. + // which are needed to style links correctly. Since macOS can handle + // Views in Text, we use that to handle interactions instead. const supportsInteractionOnText = Platform.OS !== 'macos'; return supportsA11yTextInText && supportsInteractionOnText && (inline || mergedProps.selectable) ? (