mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
[react-native] [Image] Disable broken props: width, height and tintColor
This commit is contained in:
8
types/react-native/index.d.ts
vendored
8
types/react-native/index.d.ts
vendored
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user