From 3d7e710e5f770db12ceadd1b2ca8f43956f0b4c8 Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Sat, 12 May 2018 17:37:19 -0300 Subject: [PATCH] [react-native] Make View overflow support scroll value --- types/react-native/index.d.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) 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; }