diff --git a/packages/react-native/Libraries/Image/ImageProps.js b/packages/react-native/Libraries/Image/ImageProps.js index d0413779364..c0c39075872 100644 --- a/packages/react-native/Libraries/Image/ImageProps.js +++ b/packages/react-native/Libraries/Image/ImageProps.js @@ -20,7 +20,7 @@ import type { import type {LayoutEvent, SyntheticEvent} from '../Types/CoreEventTypes'; import typeof Image from './Image'; import type {ImageSource} from './ImageSource'; -import type {Node, Ref} from 'react'; +import type {ElementRef, Node, RefSetter} from 'react'; export type ImageLoadEvent = SyntheticEvent< $ReadOnly<{| @@ -291,5 +291,5 @@ export type ImageBackgroundProps = $ReadOnly<{| * * See https://reactnative.dev/docs/imagebackground#imageref */ - imageRef?: Ref, + imageRef?: RefSetter>, |}>; 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 9be2ac6383d..db1579ed5b8 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 @@ -4880,7 +4880,7 @@ export type ImageBackgroundProps = $ReadOnly<{| children?: Node, style?: ?ViewStyleProp, imageStyle?: ?ImageStyleProp, - imageRef?: Ref, + imageRef?: RefSetter>, |}>; " `;