diff --git a/packages/react-native/Libraries/Components/Button.js b/packages/react-native/Libraries/Components/Button.js index 7824947d7617c1..2b944380e1f49d 100644 --- a/packages/react-native/Libraries/Components/Button.js +++ b/packages/react-native/Libraries/Components/Button.js @@ -63,6 +63,7 @@ export type ButtonProps = $ReadOnly<{ @platform tv @default false + @deprecated Use `focusable` instead */ hasTVPreferredFocus?: ?boolean, diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js b/packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js index 6d81eead72ba7b..338d6c99744ebb 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableHighlight.js @@ -30,6 +30,9 @@ type AndroidProps = $ReadOnly<{ }>; type IOSProps = $ReadOnly<{ + /** + * @deprecated Use `focusable` instead + */ hasTVPreferredFocus?: ?boolean, }>; diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js index 4de3b0c790bd41..481c9adf2578d2 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableNativeFeedback.js @@ -29,6 +29,7 @@ type TVProps = { * *(Apple TV only)* TV preferred focus (see documentation for the View component). * * @platform ios + * @deprecated Use `focusable` instead */ hasTVPreferredFocus?: ?boolean, diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts index bd72669a22c4a0..d579a8d66b126c 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts +++ b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.d.ts @@ -16,6 +16,7 @@ export interface TVProps { * *(Apple TV only)* TV preferred focus (see documentation for the View component). * * @platform ios + * @deprecated Use `focusable` instead */ hasTVPreferredFocus?: boolean | undefined; diff --git a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js index 8bba7ab14676ad..d2db6e3b918ff1 100644 --- a/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js +++ b/packages/react-native/Libraries/Components/Touchable/TouchableOpacity.js @@ -26,6 +26,7 @@ export type TVProps = $ReadOnly<{ * *(Apple TV only)* TV preferred focus (see documentation for the View component). * * @platform ios + * @deprecated Use `focusable` instead */ hasTVPreferredFocus?: ?boolean, diff --git a/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts b/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts index b52feb743bee3a..62803cabce7ec3 100644 --- a/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts +++ b/packages/react-native/Libraries/Components/View/ViewPropTypes.d.ts @@ -21,6 +21,9 @@ import { import {Touchable} from '../Touchable/Touchable'; import {AccessibilityProps} from './ViewAccessibility'; +/** + * @deprecated These properties are not implemented natively. + */ export interface TVViewPropsIOS { /** * *(Apple TV only)* When set to true, this view will be focusable @@ -34,6 +37,7 @@ export interface TVViewPropsIOS { * *(Apple TV only)* May be set to true to force the Apple TV focus engine to move focus to this view. * * @platform ios + * @deprecated Use `focusable` instead */ hasTVPreferredFocus?: boolean | undefined; diff --git a/packages/react-native/Libraries/Components/View/ViewPropTypes.js b/packages/react-native/Libraries/Components/View/ViewPropTypes.js index 2347f4f31bb1ed..a5b02b221663ca 100644 --- a/packages/react-native/Libraries/Components/View/ViewPropTypes.js +++ b/packages/react-native/Libraries/Components/View/ViewPropTypes.js @@ -280,6 +280,7 @@ export type ViewPropsAndroid = $ReadOnly<{ * Whether to force the Android TV focus engine to move focus to this view. * * @platform android + * @deprecated Use `focusable` instead */ hasTVPreferredFocus?: ?boolean,