mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-03 07:06:04 +00:00
chore: change fabric flag (#1979)
Changed `RN_FABRIC_ENABLED` to `RCT_NEW_ARCH_ENABLED` since it is the current standard for this flag.
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
#import "RNSVGTextPath.h"
|
||||
#import "RNSVGTextProperties.h"
|
||||
|
||||
#ifdef RN_FABRIC_ENABLED
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
#import <React/RCTConversions.h>
|
||||
#import <React/RCTFabricComponentsPlugins.h>
|
||||
#import <react/renderer/components/rnsvg/ComponentDescriptors.h>
|
||||
#import <react/renderer/components/view/conversions.h>
|
||||
#import "RNSVGFabricConversions.h"
|
||||
#endif // RN_FABRIC_ENABLED
|
||||
#endif // RCT_NEW_ARCH_ENABLED
|
||||
|
||||
@implementation RNSVGText {
|
||||
RNSVGGlyphContext *_glyphContext;
|
||||
@@ -28,7 +28,7 @@
|
||||
CGFloat cachedAdvance;
|
||||
}
|
||||
|
||||
#ifdef RN_FABRIC_ENABLED
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
using namespace facebook::react;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
@@ -75,7 +75,7 @@ using namespace facebook::react;
|
||||
_baselineShift = nil;
|
||||
cachedAdvance = 0;
|
||||
}
|
||||
#endif // RN_FABRIC_ENABLED
|
||||
#endif // RCT_NEW_ARCH_ENABLED
|
||||
|
||||
- (void)invalidate
|
||||
{
|
||||
@@ -357,9 +357,9 @@ using namespace facebook::react;
|
||||
|
||||
@end
|
||||
|
||||
#ifdef RN_FABRIC_ENABLED
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
Class<RCTComponentViewProtocol> RNSVGTextCls(void)
|
||||
{
|
||||
return RNSVGText.class;
|
||||
}
|
||||
#endif // RN_FABRIC_ENABLED
|
||||
#endif // RCT_NEW_ARCH_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user