Move typdef from RCTImageView -> RCTUIKit (#1617)

This commit is contained in:
Saad Najmi 2023-01-04 18:11:42 -06:00 коммит произвёл GitHub
Родитель 71e7ccfc29
Коммит 4ce83a6b1f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 8 удалений

Просмотреть файл

@ -6,14 +6,6 @@
*/
#import <React/RCTUIKit.h> // TODO(macOS GH#774)
#if !TARGET_OS_OSX // [TODO(macOS GH#774)
#import <UIKit/UIKit.h>
#else // [TODO(macOS GH#774)
typedef NS_ENUM(NSInteger, UIImageRenderingMode) {
UIImageRenderingModeAlwaysOriginal,
UIImageRenderingModeAlwaysTemplate,
};
#endif // ]TODO(macOS GH#774)
#import <React/RCTView.h>
#import <React/RCTResizeMode.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