Skip to content

Commit 5e80d5c

Browse files
RSNarafacebook-github-bot
authored andcommitted
ios: Deprecate legacy core components (#53455)
Summary: Pull Request resolved: #53455 All these components have fabric replacements. Let's deprecate them, so we can remove them eventually. Changelog: [iOS][Deprecated] Deprecate all the legacy core components that have replacement implementations in fabric. Reviewed By: cipolleschi Differential Revision: D80973216 fbshipit-source-id: 2b20da0800f099244b4813abf9d8af175627a445
1 parent 70f53ac commit 5e80d5c

File tree

55 files changed

+96
-35
lines changed

Some content is hidden

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

55 files changed

+96
-35
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#ifndef RCT_FIT_RM_OLD_COMPONENT
1111

12+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1213
@interface RCTImageShadowView : RCTShadowView
1314

1415
@end

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@class RCTBridge;
1515
@class RCTImageSource;
1616

17+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1718
@interface RCTImageView : RCTView
1819

1920
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#ifndef RCT_FIT_RM_OLD_COMPONENT
1111

12+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1213
@interface RCTImageViewManager : RCTViewManager
1314

1415
@end

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

16-
extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName;
16+
extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName
17+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
1718

19+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1820
@interface RCTBaseTextShadowView : RCTShadowView {
1921
@protected
2022
NSAttributedString *_Nullable cachedAttributedText;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

14+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1415
@interface RCTBaseTextViewManager : RCTViewManager
1516

1617
@end

packages/react-native/Libraries/Text/RCTTextAttributes.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@
1515

1616
NS_ASSUME_NONNULL_BEGIN
1717

18-
extern NSString *const RCTTextAttributesIsHighlightedAttributeName;
19-
extern NSString *const RCTTextAttributesTagAttributeName;
18+
extern NSString *const RCTTextAttributesIsHighlightedAttributeName
19+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
20+
extern NSString *const RCTTextAttributesTagAttributeName
21+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")));
2022

2123
/**
2224
* Represents knowledge about all supported *text* attributes
2325
* assigned to some text component such as <Text>, <VirtualText>,
2426
* and <TextInput>.
2527
*/
26-
@interface RCTTextAttributes : NSObject <NSCopying>
28+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
29+
@interface RCTTextAttributes : NSObject<NSCopying>
2730

2831
// Color
2932
@property (nonatomic, strong, nullable) UIColor *foregroundColor;

packages/react-native/Libraries/Text/RawText/RCTRawTextShadowView.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

14+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1415
@interface RCTRawTextShadowView : RCTShadowView
1516

1617
@property (nonatomic, copy, nullable) NSString *text;

packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
NS_ASSUME_NONNULL_BEGIN
1313

14+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1415
@interface RCTRawTextViewManager : RCTViewManager
1516

1617
@end

packages/react-native/Libraries/Text/Text/RCTTextShadowView.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

16+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1617
@interface RCTTextShadowView : RCTBaseTextShadowView
1718

1819
- (instancetype)initWithBridge:(RCTBridge *)bridge;

packages/react-native/Libraries/Text/Text/RCTTextView.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
NS_ASSUME_NONNULL_BEGIN
1515

16+
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
1617
@interface RCTTextView : UIView
1718

1819
@property (nonatomic, assign) BOOL selectable;

0 commit comments

Comments
 (0)