Skip to content

Commit

Permalink
revert the RNVectorIconsManager changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Oct 8, 2023
1 parent cb2e267 commit a54fa30
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
11 changes: 1 addition & 10 deletions RNVectorIconsManager/RNVectorIconsManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@
// Copyright (c) 2015 Joel Arvidsson. All rights reserved.
//

#ifdef RCT_NEW_ARCH_ENABLED
#import <RNVectorIconsSpec/RNVectorIconsSpec.h>
#else
#import <React/RCTBridgeModule.h>
#endif
#import <React/RCTLog.h>

FOUNDATION_EXPORT NSString *const RNVIErrorDomain;
Expand All @@ -19,12 +15,7 @@ enum {
RNVIGenericError = 1000,
};

@interface RNVectorIconsManager : NSObject
#ifdef RCT_NEW_ARCH_ENABLED
<NativeRNVectorIconsSpec>
#else
<RCTBridgeModule>
#endif
@interface RNVectorIconsManager : NSObject <RCTBridgeModule>

- (NSString *)hexStringFromColor:(UIColor *)color;
- (NSString *)generateFilePath:(NSString *)glyph withFontName:(NSString *)fontName
Expand Down
5 changes: 5 additions & 0 deletions RNVectorIconsManager/RNVectorIconsManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
#import <React/RCTBridge.h>
#import <React/RCTUtils.h>
#import <React/RCTFont.h>
-// Thanks to this guard, we won't import this header when we build for the old architecture.
#ifdef RCT_NEW_ARCH_ENABLED
#import "RNVectorIconsSpec.h"
#endif


NSString *const RNVIErrorDomain = @"org.oblador.react-native-vector-icons";

Expand Down

0 comments on commit a54fa30

Please sign in to comment.