Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull out CGContext early in UIImage+Diff (#35940)
Summary: This is a small refactor designed to make future merges for React Native macOS easier. It was found while merging React Native 0.71 into React Native macOS. In React Native macOS, we ifdef iOS out API's and replace them with macOS APIs, reusing as much code as possible. `CGContext` is a type that is available on both iOS and macOS, but `UIGraphicsImageRendererContext` is not. A simple refactor makes it easier to reuse this code in React Native macOS without affecting iOS :) Resolves microsoft#1676 ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [IOS] [CHANGED] - Pull out CGContext early in UIImage+Diff Pull Request resolved: #35940 Test Plan: Build should pass. Reviewed By: matrush Differential Revision: D42761424 Pulled By: javache fbshipit-source-id: 5ce79a5e7c60484dd37d0b2c3f58ff0897d662df
- Loading branch information