[react-native] [Image] Disable broken props: width, height and tintColor

This commit is contained in:
Bruno Lemos
2018-05-16 03:45:45 -03:00
parent ddac6e2625
commit cf5dd197b3
2 changed files with 12 additions and 3 deletions

View File

@@ -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 {

View File

@@ -471,12 +471,13 @@ class StylePropsTest extends React.PureComponent {
<View backgroundColor="lightgray" flex={1} overflow="scroll">
<Image
borderRadius={100}
height={300}
// height={200}
margin={20}
overflow="visible" // ps: must fail if "scroll"
source={{ uri }}
tintColor="green"
width={300}
style={{ width: 200, height: 200, tintColor: 'green' }}
// tintColor="green"
// width={200}
/>
</View>
);