Skip to content

Commit dd9ae2c

Browse files
RSNarafacebook-github-bot
authored andcommitted
core: Remove legacy components (#52118)
Summary: Pull Request resolved: #52118 This diff aims to remove all legacy components from react native core. Reviewed By: mdvacca Differential Revision: D72733503
1 parent c5fb371 commit dd9ae2c

File tree

109 files changed

+532
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+532
-0
lines changed

packages/react-native/Libraries/Image/RCTImageShadowView.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
#import <React/RCTShadowView.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
@interface RCTImageShadowView : RCTShadowView
1113

1214
@end
15+
16+
#endif

packages/react-native/Libraries/Image/RCTImageShadowView.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
#import <React/RCTLog.h>
1111

12+
#ifndef RCT_FIT_RM_OLD_COMPONENT
13+
1214
@implementation RCTImageShadowView
1315

1416
- (BOOL)isYogaLeafNode
@@ -22,3 +24,5 @@ - (BOOL)canHaveSubviews
2224
}
2325

2426
@end
27+
28+
#endif

packages/react-native/Libraries/Image/RCTImageView.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#import <React/RCTView.h>
1010
#import <UIKit/UIKit.h>
1111

12+
#ifndef RCT_FIT_RM_OLD_COMPONENT
13+
1214
@class RCTBridge;
1315
@class RCTImageSource;
1416

@@ -25,3 +27,5 @@
2527
@property (nonatomic, copy) NSString *internal_analyticTag;
2628

2729
@end
30+
31+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Image/RCTImageView.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#import <React/RCTUtils.h>
1818
#import <React/UIView+React.h>
1919

20+
#ifndef RCT_FIT_RM_OLD_COMPONENT
21+
2022
/**
2123
* Determines whether an image of `currentSize` should be reloaded for display
2224
* at `idealSize`.
@@ -502,3 +504,5 @@ - (void)dealloc
502504
}
503505

504506
@end
507+
508+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Image/RCTImageViewManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
#import <React/RCTViewManager.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
@interface RCTImageViewManager : RCTViewManager
1113

1214
@end
15+
16+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Image/RCTImageViewManager.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#import <React/RCTImageViewManager.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
#import <UIKit/UIKit.h>
1113

1214
#import <React/RCTConvert.h>
@@ -114,3 +116,5 @@ - (UIView *)view
114116
}
115117

116118
@end
119+
120+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#import <React/RCTShadowView.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
#import "RCTTextAttributes.h"
1113

1214
NS_ASSUME_NONNULL_BEGIN
@@ -27,3 +29,5 @@ extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName;
2729
@end
2830

2931
NS_ASSUME_NONNULL_END
32+
33+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#import <React/RCTBaseTextShadowView.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
#import <React/RCTShadowView+Layout.h>
1113

1214
#import <React/RCTRawTextShadowView.h>
@@ -156,3 +158,5 @@ - (void)didSetProps:(NSArray<NSString *> *)changedProps
156158
}
157159

158160
@end
161+
162+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77

88
#import <React/RCTViewManager.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
NS_ASSUME_NONNULL_BEGIN
1113

1214
@interface RCTBaseTextViewManager : RCTViewManager
1315

1416
@end
1517

1618
NS_ASSUME_NONNULL_END
19+
20+
#endif // RCT_FIT_RM_OLD_COMPONENT

packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.mm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
#import <React/RCTBaseTextViewManager.h>
99

10+
#ifndef RCT_FIT_RM_OLD_COMPONENT
11+
1012
@implementation RCTBaseTextViewManager
1113

1214
RCT_EXPORT_MODULE(RCTBaseText)
@@ -58,3 +60,5 @@ - (RCTShadowView *)shadowView
5860
RCT_REMAP_SHADOW_PROPERTY(textTransform, textAttributes.textTransform, RCTTextTransform)
5961

6062
@end
63+
64+
#endif // RCT_FIT_RM_OLD_COMPONENT

0 commit comments

Comments
 (0)