From b999740a0f8fe975f11f903522f1abf869414e24 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Wed, 4 Jan 2023 12:35:20 -0600 Subject: [PATCH] Move typdef from RCTImageView -> RCTUIKit --- Libraries/Image/RCTImageView.h | 8 -------- React/Base/RCTUIKit.h | 5 +++++ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Libraries/Image/RCTImageView.h b/Libraries/Image/RCTImageView.h index 248819f88fc5a7..2b568f5e9df26d 100644 --- a/Libraries/Image/RCTImageView.h +++ b/Libraries/Image/RCTImageView.h @@ -6,14 +6,6 @@ */ #import // TODO(macOS GH#774) -#if !TARGET_OS_OSX // [TODO(macOS GH#774) -#import -#else // [TODO(macOS GH#774) -typedef NS_ENUM(NSInteger, UIImageRenderingMode) { - UIImageRenderingModeAlwaysOriginal, - UIImageRenderingModeAlwaysTemplate, -}; -#endif // ]TODO(macOS GH#774) #import #import diff --git a/React/Base/RCTUIKit.h b/React/Base/RCTUIKit.h index b6a6f455226a8d..81761ade33da64 100644 --- a/React/Base/RCTUIKit.h +++ b/React/Base/RCTUIKit.h @@ -321,6 +321,11 @@ NS_INLINE NSEdgeInsets UIEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat botto // UIImage @compatibility_alias UIImage NSImage; +typedef NS_ENUM(NSInteger, UIImageRenderingMode) { + UIImageRenderingModeAlwaysOriginal, + UIImageRenderingModeAlwaysTemplate, +}; + #ifdef __cplusplus extern "C" #endif