Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rurikoaraki committed Nov 12, 2024
1 parent 5dae06a commit 25e390c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/Link/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const Link = compose<LinkType>({
// 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) ? (
Expand Down

0 comments on commit 25e390c

Please sign in to comment.