diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 184fc39724..d664018786 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1919,7 +1919,7 @@ type AccessibilityTrait = * @see https://facebook.github.io/react-native/docs/view.html#props */ export interface ViewProps - extends ViewPropsAndroid, ViewPropsIOS, GestureResponderHandlers, Touchable, AccessibilityProps, ViewStyle { + extends ViewPropsAndroid, ViewPropsIOS, GestureResponderHandlers, Touchable, AccessibilityProps { /** * This defines how far a touch event can start away from the view. * Typical interface guidelines recommend touch targets that are at least @@ -3605,7 +3605,7 @@ export interface ImageResolvedAssetSource { /** * @see https://facebook.github.io/react-native/docs/image.html */ -export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps, ImageStyle { +export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, AccessibilityProps { /** * onLayout function * @@ -3720,14 +3720,6 @@ export interface ImagePropsBase extends ImagePropsIOS, ImagePropsAndroid, Access * A static image to display while downloading the final image off the network. */ defaultSource?: ImageURISource | number; - - /** - * 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 60c4d89302..4e21cb5c72 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -686,31 +686,6 @@ export class ImageBackgroundProps extends React.Component { } } -class StylePropsTest extends React.PureComponent { - render() { - const uri = 'https://seeklogo.com/images/T/typescript-logo-B29A3F462D-seeklogo.com.png' - - return ( - - - - - Text - - - ); - } -} - const listViewDataSourceTest = new ListView.DataSource({rowHasChanged: () => true}) class AccessibilityTest extends React.Component {