Skip to content

Commit

Permalink
Move category to HostPlatformColor
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Feb 3, 2025
1 parent dad55b5 commit fabf86f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
*/

#import "HostPlatformColor.h"
#import "UIColor+Graphics.h"

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <objc/runtime.h>
#import <react/renderer/graphics/RCTPlatformColorUtils.h>
#import <react/utils/ManagedObjectWrapper.h>
#import <string>
Expand All @@ -18,6 +18,20 @@

NS_ASSUME_NONNULL_BEGIN

@implementation UIColor (React_Graphics)

- (int32_t)reactHash
{
return [objc_getAssociatedObject(self, _cmd) intValue];
}

- (void)setReactHash:(int32_t)reactHash
{
objc_setAssociatedObject(self, @selector(reactHash), @(reactHash), OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@end

namespace facebook::react {

namespace {
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit fabf86f

Please sign in to comment.