react-native-macos/packages/rn-tester/RCTTest
Saad Najmi 7f2dd1d49c 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 https://github.com/microsoft/react-native-macos/issues/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: https://github.com/facebook/react-native/pull/35940

Test Plan: Build should pass.

Reviewed By: matrush

Differential Revision: D42761424

Pulled By: javache

fbshipit-source-id: 5ce79a5e7c60484dd37d0b2c3f58ff0897d662df
2023-02-05 06:49:08 -08:00
..
FBSnapshotTestCase Pull out CGContext early in UIImage+Diff (#35940) 2023-02-05 06:49:08 -08:00
RCTSnapshotManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSnapshotManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSnapshotNativeComponent.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestModule.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestModule.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestPlugins.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestPlugins.mm Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestRunner.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTestRunner.m Remove remaining TV_OS fragments (#35110) 2022-10-28 02:50:49 -07:00
React-RCTTest.podspec Update .podspec license information (#35245) 2022-11-07 09:52:52 -08:00