Skip to content

Commit fbd09b1

Browse files
Naturalclarfacebook-github-bot
authored andcommitted
Image: remove unused ImageProps (#28151)
Summary: I noticed that there was a `height` and `width` props in `Image` component, but those props are not being used in `RCTImageView`(ios) or `ReactImageView`(android). ## Changelog [GENERAL] [Removed] - Remove Unused ImageProp Pull Request resolved: #28151 Test Plan: Start a new React Native Project, and use `Image` component with `width` and `height` props and verify that it does not display the image on both iOS and Android Reviewed By: shergin Differential Revision: D20197126 Pulled By: TheSavior fbshipit-source-id: 186119448826659d7c01c7c8a271157228169c30
1 parent c203ec0 commit fbd09b1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Libraries/Image/ImageProps.js

-4
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,6 @@ export type ImageProps = {|
149149
*/
150150
style?: ?ImageStyleProp,
151151

152-
// Can be set via props or style, for now
153-
height?: ?DimensionValue,
154-
width?: ?DimensionValue,
155-
156152
/**
157153
* Determines how to resize the image when the frame doesn't match the raw
158154
* image dimensions.

0 commit comments

Comments
 (0)