diff --git a/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js b/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js index a154c827511..e3da1d7798c 100644 --- a/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js +++ b/packages/react-native/Libraries/Components/SafeAreaView/SafeAreaView.js @@ -23,10 +23,10 @@ import * as React from 'react'; * limitation of the screen, such as rounded corners or camera notches (aka * sensor housing area on iPhone X). */ -const exported: React.AbstractComponent< - ViewProps, - React.ElementRef, -> = Platform.select({ +const exported: component( + ref: React.RefSetter>, + ...props: ViewProps +) = Platform.select({ ios: require('./RCTSafeAreaViewNativeComponent').default, default: View, }); 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 8c0753fc380..77f78faaf78 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 @@ -1995,10 +1995,10 @@ declare export default typeof RCTSafeAreaViewNativeComponent; `; exports[`public API should not change unintentionally Libraries/Components/SafeAreaView/SafeAreaView.js 1`] = ` -"declare const exported: React.AbstractComponent< - ViewProps, - React.ElementRef, ->; +"declare const exported: component( + ref: React.RefSetter>, + ...props: ViewProps +); declare export default typeof exported; " `;