-
Notifications
You must be signed in to change notification settings - Fork 149
Remove diff in RCTImageLoader #1616
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
Conversation
Base commit: 7222926 |
As it turns out, we can't depend on RCTUIKit here, because this file's podspec (React-RCTImage) doesn't take a dependency on RCTUIKit's pod I went with copying the methods needed over to the other file, as we already had some duplication. Let me know if there's an issue with this approach. I can also just close the PR and leave things as is. |
* Remove unnecessary diff in RCTImageLoader * Remove RCTUIKit dependency * Fix bug where we hardcode compression quality * Update comment * Update RCTImageLoader.mm * Update RCTImageLoader.mm
Please select one of the following
Summary
This came up during the 0.71 merge. There was an iOS only method we had already shimmed in RCTUIKit:
As it turns out, we can't depend on RCTUIKit here, because this file's podspec (React-RCTImage) doesn't take a dependency on RCTUIKit's pod React-Core. The #import <React/RCTUIKit.h> most likely worked out of happenstance. I went with copying the methods needed from RCTUIKit to RCTImageLoader as we already had some duplication.
Let's also fix a bug where compressionQuality was hardcoded.
Changelog
[macOS] [Fixed] - Remove unnecessary diff in RCTImageLoader
Test Plan
CI should pass