-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
[Image] Warn for width/height props #789
Conversation
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.
@vjeux - do you think this is worth adding? @blairvanderhoof - rebase needed here 😄 |
Definitely worth it. Would be nice to add a if (DEV) { } around it so that it's not being run in prod |
@blairvanderhoof could you rebase and follow @vjeux's |
@blairvanderhoof updated the pull request. |
Could you do this for Android too? We ask for parity in PRs to keep platforms in sync. |
@blairvanderhoof Any updates on this? |
Sorry, I need to find the time to do it, feel free to have someone take over. |
* Add nullability checks (facebook#704) * Update RCTCxxBridge.mm * add nullability checks * Check a nil URL to fix crashes connecting to socket (facebook#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>
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: facebook/metro#789 Reviewed By: rh389 Differential Revision: D34819044 Pulled By: motiz88 fbshipit-source-id: fe27b2c2af0281d5309d4c16f95762d4d4935eba
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.