mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
1d7fd7ebcf
commit
7269a2da79
+2
-3
@@ -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>>,
|
||||
}>;
|
||||
"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user