Skip to content

Commit

Permalink
Add missing macOS props to Text.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gleitman committed Jul 26, 2024
1 parent 0f54a24 commit 376c12e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/react-native/Libraries/Text/Text.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,20 @@ export interface TextPropsAndroid {
android_hyphenationFrequency?: 'normal' | 'none' | 'full' | undefined;
}

// [macOS
export interface TextPropsMacOS {
enableFocusRing?: boolean | undefined;
focusable?: boolean | undefined;
onMouseEnter?: ((event: MouseEvent) => void) | undefined;
onMouseLeave?: ((event: MouseEvent) => void) | undefined;
tooltip?: string | undefined;
}
// macOS]

// https://reactnative.dev/docs/text#props
export interface TextProps
extends TextPropsIOS,
TextPropsMacOS, // [macOS]
TextPropsAndroid,
AccessibilityProps {
/**
Expand Down

0 comments on commit 376c12e

Please sign in to comment.