Skip to content

[Image] Warn for width/height props - #789

Closed
ghost wants to merge 1 commit into
masterfrom
unknown repository
Closed

[Image] Warn for width/height props#789
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost

Copy link
Copy Markdown

If the user passes in a width or height prop to the Image component, warn them that they should set these values using style instead.

If the user passes in a width or height prop to the Image component, warn them that they should set these values using style instead.
@facebook-github-botfacebook-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 Apr 10, 2015
@brentvatne

Copy link
Copy Markdown
Collaborator

@vjeux - do you think this is worth adding?

@blairvanderhoof - rebase needed here 😄

@brentvatnebrentvatne changed the title Warn for width/height props[Image] Warn for width/height propsJun 1, 2015
@vjeux

vjeux commented Jun 1, 2015

Copy link
Copy Markdown
Contributor

Definitely worth it. Would be nice to add a if (DEV) { } around it so that it's not being run in prod

@skevy

Copy link
Copy Markdown
Contributor

@blairvanderhoof could you rebase and follow @vjeux's if (DEV) {} suggestion?

@facebook-github-bot

Copy link
Copy Markdown
Contributor

@blairvanderhoof updated the pull request.

@ide

ide commented Nov 24, 2015

Copy link
Copy Markdown
Contributor

Could you do this for Android too? We ask for parity in PRs to keep platforms in sync.

@satya164

Copy link
Copy Markdown
Contributor

@blairvanderhoof Any updates on this?

@ghost

Copy link
Copy Markdown
Author

Sorry, I need to find the time to do it, feel free to have someone take over.

mganandraj pushed a commit to mganandraj/react-native that referenced this pull request Oct 28, 2021
* Add nullability checks (react#704)
* Update RCTCxxBridge.mm
* add nullability checks
* Check a nil URL to fix crashes connecting to socket (react#785)
* Update RCTCxxBridge.mm
* Update RCTCxxBridge.mm
* nil check websocket URL
* use RCTAssertParam
Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>
* pod install
Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>
facebook-github-bot pushed a commit that referenced this pull request Mar 15, 2022
Summary:
## Summary
Hermes added support for generators in 0.2.0, and JSC is ES6 feature complete since r202125.
NOTE: This is a combined Metro + React Native commit. For React Native, the only change here is adding `babel/plugin-transform-regenerator` to `repo-config` ( = `devDependencies`), so the tests no longer implicitly consume it via Metro.
Changelog: [Internal]
X-link: react/metro#789
Reviewed By: rh389
Differential Revision: D34819044
Pulled By: motiz88
fbshipit-source-id: fe27b2c2af0281d5309d4c16f95762d4d4935eba
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@brentvatne@vjeux@skevy@facebook-github-bot@ide@satya164