We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dae06a commit 25e390cCopy full SHA for 25e390c
packages/components/Link/src/Link.tsx
@@ -43,6 +43,9 @@ export const Link = compose<LinkType>({
43
// This is a workaround for the issue. Once those issues are resolved, supportsA11yTextInText can be removed.
44
const supportsA11yTextInText = Platform.OS !== 'android';
45
46
+ // MacOS Text component doesn't handle interaction events like hover etc.
47
+ // which are needed to style links correctly. Since macOS can handle
48
+ // Views in Text, we use that to handle interactions instead.
49
const supportsInteractionOnText = Platform.OS !== 'macos';
50
51
return supportsA11yTextInText && supportsInteractionOnText && (inline || mergedProps.selectable) ? (
0 commit comments