Move typdef from RCTImageView -> RCTUIKit (#1617)
This commit is contained in:
Родитель
71e7ccfc29
Коммит
4ce83a6b1f
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче