Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resizeMode applies to Image.defaultSource #22216

Closed

Conversation

dulmandakh
Copy link
Contributor

@dulmandakh dulmandakh commented Nov 8, 2018

resizeMode applies to Image.defaultSource, because depending on screen resolution sometimes we see padding around defaultSource image while source loading. Now we can control scale of both source and defaultSource.

Changelog:

[Android] [Fixed] - Image.resizeMode will apply to defaultSource, enhanced user experience. Previously, resizeMode didn't applied to defaultSource, therefore depending on screen resolution sometimes we see padding around defaultSource image while source loading.

@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 Nov 8, 2018
@pull-bot
Copy link

pull-bot commented Nov 8, 2018

Warnings
⚠️

📋 Test Plan - This PR appears to be missing a Test Plan.

⚠️

📋 Release Notes - This PR appears to be missing Release Notes.

Generated by 🚫 dangerJS

@dulmandakh dulmandakh changed the title change Image.defaultSource scaletype center -> fitcenter resizeMode applies to Image.defaultSource Nov 8, 2018
@dulmandakh dulmandakh reopened this Nov 8, 2018
@dulmandakh
Copy link
Contributor Author

just dug a little bit, and found proper solution 👍

@dulmandakh
Copy link
Contributor Author

@hramos please review and merge

@radko93
Copy link
Contributor

radko93 commented Nov 14, 2018

You should ask release notes (look into new PR template).

@kelset
Copy link
Contributor

kelset commented Nov 15, 2018

Hey @dulmandakh can you add the release notes to the post - then I'll try to trigger the import.

@dulmandakh
Copy link
Contributor Author

@kelset done

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Nov 15, 2018
Copy link
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.

@mdvacca is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@react-native-bot
Copy link
Collaborator

@dulmandakh merged commit 673ef39 into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Nov 16, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 16, 2018
kelset pushed a commit that referenced this pull request Nov 26, 2018
Summary:
resizeMode applies to Image.defaultSource, because depending on screen resolution sometimes we see padding around defaultSource image while source loading. Now we can control scale of both source and defaultSource.

Changelog:
----------
[Android] [Fixed] - Image.resizeMode will apply to defaultSource, enhanced user experience. Previously, resizeMode didn't applied to defaultSource, therefore depending on screen resolution sometimes we see padding around defaultSource image while source loading.
Pull Request resolved: #22216

Differential Revision: D13088220

Pulled By: mdvacca

fbshipit-source-id: 92c66cf6228f3b7666b9ef2404d034f0005b5234
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
@dulmandakh dulmandakh deleted the defaultsource-fitcenter branch February 22, 2019 14:23
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
resizeMode applies to Image.defaultSource, because depending on screen resolution sometimes we see padding around defaultSource image while source loading. Now we can control scale of both source and defaultSource.

Changelog:
----------
[Android] [Fixed] - Image.resizeMode will apply to defaultSource, enhanced user experience. Previously, resizeMode didn't applied to defaultSource, therefore depending on screen resolution sometimes we see padding around defaultSource image while source loading.
Pull Request resolved: facebook#22216

Differential Revision: D13088220

Pulled By: mdvacca

fbshipit-source-id: 92c66cf6228f3b7666b9ef2404d034f0005b5234
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Component: Image Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants