Update React types usage in ImageProps (#50541)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/50541

Changelog: [Internal]

Reviewed By: huntie

Differential Revision: D72624527

fbshipit-source-id: ffdce30b010e2425bc805d800f70be5eaf2b3fed
This commit is contained in:
Jakub Piasecki
2025-04-14 05:12:31 -07:00
committed by Facebook GitHub Bot
parent 1d7fd7ebcf
commit 7269a2da79
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -21,10 +21,9 @@ import type {
LayoutChangeEvent,
NativeSyntheticEvent,
} from '../Types/CoreEventTypes';
import type {ImageType} from './ImageTypes.flow';
import type {ImageResizeMode} from './ImageResizeMode';
import type {ImageSource, ImageURISource} from './ImageSource';
import type {ElementRef, RefSetter} from 'react';
import type {ImageType} from './ImageTypes.flow';
import * as React from 'react';
@@ -368,5 +367,5 @@ export type ImageBackgroundProps = $ReadOnly<{
*
* See https://reactnative.dev/docs/imagebackground#imageref
*/
imageRef?: RefSetter<ElementRef<ImageType>>,
imageRef?: React.RefSetter<React.ElementRef<ImageType>>,
}>;
@@ -4369,7 +4369,7 @@ export type ImageBackgroundProps = $ReadOnly<{
children?: React.Node,
style?: ?ViewStyleProp,
imageStyle?: ?ImageStyleProp,
imageRef?: RefSetter<ElementRef<ImageType>>,
imageRef?: React.RefSetter<React.ElementRef<ImageType>>,
}>;
"
`;