From cf5dd197b379cd6cdf3072c6d724e22372ef87f3 Mon Sep 17 00:00:00 2001 From: Bruno Lemos Date: Wed, 16 May 2018 03:45:45 -0300 Subject: [PATCH] [react-native] [Image] Disable broken props: width, height and tintColor --- types/react-native/index.d.ts | 8 ++++++++ types/react-native/test/index.tsx | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 5fbc785e5a..bb4c163ac5 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3494,6 +3494,14 @@ export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, Access * A unique identifier for this element to be used in UI Automation testing scripts. */ testID?: string; + + /** + * Currently broken + * @see https://github.com/facebook/react-native/pull/19281 + */ + width?: never, + height?: never, + tintColor?: never, } export interface ImageProps extends ImagePropsBase { diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index f51c041b8c..b3487057ed 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -471,12 +471,13 @@ class StylePropsTest extends React.PureComponent { );