mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +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:
@@ -8,17 +8,17 @@
|
||||
|
||||
#import "RNSVGClipPath.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 RNSVGClipPath
|
||||
|
||||
#ifdef RN_FABRIC_ENABLED
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
using namespace facebook::react;
|
||||
|
||||
- (instancetype)initWithFrame:(CGRect)frame
|
||||
@@ -48,7 +48,7 @@ using namespace facebook::react;
|
||||
{
|
||||
[super prepareForRecycle];
|
||||
}
|
||||
#endif // RN_FABRIC_ENABLED
|
||||
#endif // RCT_NEW_ARCH_ENABLED
|
||||
|
||||
- (void)parseReference
|
||||
{
|
||||
@@ -70,9 +70,9 @@ using namespace facebook::react;
|
||||
|
||||
@end
|
||||
|
||||
#ifdef RN_FABRIC_ENABLED
|
||||
#ifdef RCT_NEW_ARCH_ENABLED
|
||||
Class<RCTComponentViewProtocol> RNSVGClipPathCls(void)
|
||||
{
|
||||
return RNSVGClipPath.class;
|
||||
}
|
||||
#endif // RN_FABRIC_ENABLED
|
||||
#endif // RCT_NEW_ARCH_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user