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

Test and document Image resizeMode=center on iOS #17759

Closed
wants to merge 2 commits into from

Conversation

motiz88
Copy link
Contributor

@motiz88 motiz88 commented Jan 27, 2018

Motivation

<Image resizeMode="center"> already works on iOS (implemented in #8792), but is neither tested nor documented the way the other resizeMode values are.

This PR primarily enables the relevant RNTester case on iOS, and secondarily copies over the doc comment from Image.android.js to Image.ios.js. A PR to react-native-website will follow shortly and it is there I will try and revise the wording a bit.

Test Plan

Updated RNTester screenshot (iOS):

Related PRs

react-native-website PR coming soon.

Release Notes

[IOS] [MINOR] [Image] - Include resizeMode=center in RNTester

@motiz88 motiz88 requested a review from shergin as a code owner January 27, 2018 09:47
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. cla signed labels Jan 27, 2018
@pull-bot
Copy link

Attention: @shergin

Generated by 🚫 dangerJS

@janicduplessis
Copy link
Contributor

Thanks! 👍

@facebook-github-bot shipit

@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 Jan 27, 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.

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

@shergin
Copy link
Contributor

shergin commented Jan 27, 2018

Should we fix a screenshot test now?

rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Mar 1, 2018
Summary:
`<Image resizeMode="center">` already works on iOS (implemented in #8792), but is neither tested nor documented the way the other `resizeMode` values are.

This PR primarily enables the relevant RNTester case on iOS, and secondarily copies over the doc comment from `Image.android.js` to `Image.ios.js`. A PR to `react-native-website` will follow shortly and it is there I will try and revise the wording a bit.

Updated RNTester screenshot (iOS):

<img src=https://user-images.githubusercontent.com/2246565/35470720-44b38282-0357-11e8-941c-1b3c5a1b2f3b.png width=300>

react-native-website PR coming soon.

[IOS] [MINOR] [Image] - Include resizeMode=center in RNTester
Closes facebook/react-native#17759

Differential Revision: D6829051

Pulled By: hramos

fbshipit-source-id: c6e0000a75765e8bf3a1d0306aaafad002b14a58
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. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants