diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 61f15c086c..63f3157dfc 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1599,7 +1599,6 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle { borderTopWidth?: number; borderWidth?: number; opacity?: number; - overflow?: "visible" | "hidden"; testID?: string; /** * Sets the elevation of a view, using Android's underlying @@ -3386,7 +3385,7 @@ export type ImageSourcePropType = ImageURISource | ImageURISource[] | ImageRequi /** * @see https://facebook.github.io/react-native/docs/image.html */ -export interface ImageProps extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps, ViewStyle { +export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps, ViewStyle { /** * onLayout function * @@ -3491,16 +3490,18 @@ export interface ImageProps extends ImagePropsIOS, ImagePropsAndroid, Accessibil */ loadingIndicatorSource?: ImageURISource; + /** + * A unique identifier for this element to be used in UI Automation testing scripts. + */ + testID?: string; +} + +export interface ImageProps extends ImagePropsBase { /** * * Style */ style?: StyleProp; - - /** - * A unique identifier for this element to be used in UI Automation testing scripts. - */ - testID?: string; } declare class ImageComponent extends React.Component {} @@ -3513,7 +3514,7 @@ export class Image extends ImageBase { queryCache?(urls: string[]): Promise>; } -export interface ImageBackgroundProps extends ImageProps { +export interface ImageBackgroundProps extends ImagePropsBase { style?: StyleProp; imageStyle?: StyleProp; }