diff --git a/packages/react-native/Libraries/Components/View/View.js b/packages/react-native/Libraries/Components/View/View.js index e51583ca6fe..f1522cf7a85 100644 --- a/packages/react-native/Libraries/Components/View/View.js +++ b/packages/react-native/Libraries/Components/View/View.js @@ -23,10 +23,10 @@ export type Props = ViewProps; * * @see https://reactnative.dev/docs/view */ -const View: React.AbstractComponent< - ViewProps, - React.ElementRef, -> = React.forwardRef( +const View: component( + ref: React.RefSetter>, + ...props: ViewProps +) = React.forwardRef( ( { accessibilityElementsHidden, diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 77f78faaf78..2922e593e7c 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -3924,10 +3924,10 @@ declare module.exports: ReactNativeViewAttributes; exports[`public API should not change unintentionally Libraries/Components/View/View.js 1`] = ` "export type Props = ViewProps; -declare const View: React.AbstractComponent< - ViewProps, - React.ElementRef, ->; +declare const View: component( + ref: React.RefSetter>, + ...props: ViewProps +); declare module.exports: View; " `;