Skip to content

Image: remove unused ImageProps#28151

Closed
Naturalclar wants to merge 1 commit into
facebook:masterfrom
Naturalclar:chore/removeUnusedImageProps
Closed

Image: remove unused ImageProps#28151
Naturalclar wants to merge 1 commit into
facebook:masterfrom
Naturalclar:chore/removeUnusedImageProps

Conversation

@Naturalclar
Copy link
Copy Markdown
Contributor

@Naturalclar Naturalclar commented Feb 21, 2020

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

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

@Naturalclar Naturalclar requested a review from shergin as a code owner February 21, 2020 17:18
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 21, 2020
@analysis-bot
Copy link
Copy Markdown

RNTester (Android/hermes/arm64-v8a): 3291136 bytes
RNTester (Android/hermes/armeabi-v7a): 3131392 bytes
RNTester (Android/hermes/x86): 3461120 bytes
RNTester (Android/hermes/x86_64): 3426304 bytes
RNTester (Android/jsc/arm64-v8a): 4446208 bytes
RNTester (Android/jsc/armeabi-v7a): 4268032 bytes
RNTester (Android/jsc/x86): 4360192 bytes
RNTester (Android/jsc/x86_64): 4646912 bytes

@analysis-bot
Copy link
Copy Markdown

RNTester.app (iOS): 10657792 bytes

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TheSavior has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @Naturalclar in fbd09b1.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Mar 5, 2020
@Naturalclar Naturalclar deleted the chore/removeUnusedImageProps branch March 6, 2020 03:26
osdnk pushed a commit to osdnk/react-native that referenced this pull request Mar 9, 2020
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: facebook#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Type: Removal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants