diff --git a/packages/react-native/Libraries/Image/RCTImageShadowView.h b/packages/react-native/Libraries/Image/RCTImageShadowView.h index c2c37cbfa9c..e89a726cc4d 100644 --- a/packages/react-native/Libraries/Image/RCTImageShadowView.h +++ b/packages/react-native/Libraries/Image/RCTImageShadowView.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTImageShadowView : RCTShadowView @end diff --git a/packages/react-native/Libraries/Image/RCTImageView.h b/packages/react-native/Libraries/Image/RCTImageView.h index 4abd7864850..2d205a8f8b2 100644 --- a/packages/react-native/Libraries/Image/RCTImageView.h +++ b/packages/react-native/Libraries/Image/RCTImageView.h @@ -14,6 +14,7 @@ @class RCTBridge; @class RCTImageSource; +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTImageView : RCTView - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; diff --git a/packages/react-native/Libraries/Image/RCTImageViewManager.h b/packages/react-native/Libraries/Image/RCTImageViewManager.h index 5897567ea11..45ea17309cb 100644 --- a/packages/react-native/Libraries/Image/RCTImageViewManager.h +++ b/packages/react-native/Libraries/Image/RCTImageViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTImageViewManager : RCTViewManager @end diff --git a/packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h b/packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h index 71da41b89e8..db352c456cd 100644 --- a/packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h +++ b/packages/react-native/Libraries/Text/BaseText/RCTBaseTextShadowView.h @@ -13,8 +13,10 @@ NS_ASSUME_NONNULL_BEGIN -extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName; +extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName + __attribute__((deprecated("This API will be removed along with the legacy architecture."))); +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTBaseTextShadowView : RCTShadowView { @protected NSAttributedString *_Nullable cachedAttributedText; diff --git a/packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h b/packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h index 7f865aa620d..94d69165bff 100644 --- a/packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h +++ b/packages/react-native/Libraries/Text/BaseText/RCTBaseTextViewManager.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTBaseTextViewManager : RCTViewManager @end diff --git a/packages/react-native/Libraries/Text/RCTTextAttributes.h b/packages/react-native/Libraries/Text/RCTTextAttributes.h index 7f50eb7b62b..c3594c9de84 100644 --- a/packages/react-native/Libraries/Text/RCTTextAttributes.h +++ b/packages/react-native/Libraries/Text/RCTTextAttributes.h @@ -15,15 +15,18 @@ NS_ASSUME_NONNULL_BEGIN -extern NSString *const RCTTextAttributesIsHighlightedAttributeName; -extern NSString *const RCTTextAttributesTagAttributeName; +extern NSString *const RCTTextAttributesIsHighlightedAttributeName + __attribute__((deprecated("This API will be removed along with the legacy architecture."))); +extern NSString *const RCTTextAttributesTagAttributeName + __attribute__((deprecated("This API will be removed along with the legacy architecture."))); /** * Represents knowledge about all supported *text* attributes * assigned to some text component such as , , * and . */ -@interface RCTTextAttributes : NSObject +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTTextAttributes : NSObject // Color @property (nonatomic, strong, nullable) UIColor *foregroundColor; diff --git a/packages/react-native/Libraries/Text/RawText/RCTRawTextShadowView.h b/packages/react-native/Libraries/Text/RawText/RCTRawTextShadowView.h index ad1dd0e107d..5aef976c3a1 100644 --- a/packages/react-native/Libraries/Text/RawText/RCTRawTextShadowView.h +++ b/packages/react-native/Libraries/Text/RawText/RCTRawTextShadowView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTRawTextShadowView : RCTShadowView @property (nonatomic, copy, nullable) NSString *text; diff --git a/packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h b/packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h index 2be0f052d7b..d8a778f8eb9 100644 --- a/packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h +++ b/packages/react-native/Libraries/Text/RawText/RCTRawTextViewManager.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTRawTextViewManager : RCTViewManager @end diff --git a/packages/react-native/Libraries/Text/Text/RCTTextShadowView.h b/packages/react-native/Libraries/Text/Text/RCTTextShadowView.h index 1bffce0e0e0..4654f44282b 100644 --- a/packages/react-native/Libraries/Text/Text/RCTTextShadowView.h +++ b/packages/react-native/Libraries/Text/Text/RCTTextShadowView.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTTextShadowView : RCTBaseTextShadowView - (instancetype)initWithBridge:(RCTBridge *)bridge; diff --git a/packages/react-native/Libraries/Text/Text/RCTTextView.h b/packages/react-native/Libraries/Text/Text/RCTTextView.h index 03e4f1422b9..044f5e9d918 100644 --- a/packages/react-native/Libraries/Text/Text/RCTTextView.h +++ b/packages/react-native/Libraries/Text/Text/RCTTextView.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTTextView : UIView @property (nonatomic, assign) BOOL selectable; diff --git a/packages/react-native/Libraries/Text/Text/RCTTextViewManager.h b/packages/react-native/Libraries/Text/Text/RCTTextViewManager.h index 13f374892ba..be14af81b41 100644 --- a/packages/react-native/Libraries/Text/Text/RCTTextViewManager.h +++ b/packages/react-native/Libraries/Text/Text/RCTTextViewManager.h @@ -11,6 +11,7 @@ #import "RCTBaseTextViewManager.h" +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTTextViewManager : RCTBaseTextViewManager @end diff --git a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h index 838600e75c6..12f3981b07b 100644 --- a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h +++ b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTMultilineTextInputView : RCTBaseTextInputView @end diff --git a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h index e03d70bcc79..5df86494192 100644 --- a/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h +++ b/packages/react-native/Libraries/Text/TextInput/Multiline/RCTMultilineTextInputViewManager.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTMultilineTextInputViewManager : RCTBaseTextInputViewManager @end diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h index 73522039780..c7ef1ac583c 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputShadowView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTBaseTextInputShadowView : RCTBaseTextShadowView - (instancetype)initWithBridge:(RCTBridge *)bridge; diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.h b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.h index 278f5a90a65..cc8e93faa51 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputView.h @@ -20,7 +20,8 @@ NS_ASSUME_NONNULL_BEGIN -@interface RCTBaseTextInputView : RCTView +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTBaseTextInputView : RCTView - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; diff --git a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h index c51110c7f50..4437dd29510 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTBaseTextInputViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTBaseTextInputViewManager : RCTBaseTextViewManager @end diff --git a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h index 02313c782bc..1212be18f12 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryShadowView.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTInputAccessoryShadowView : RCTShadowView @end diff --git a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryView.h b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryView.h index 415c8e97292..37f9c800c13 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryView.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryView.h @@ -12,6 +12,7 @@ @class RCTBridge; @class RCTInputAccessoryViewContent; +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTInputAccessoryView : UIView - (instancetype)initWithBridge:(RCTBridge *)bridge; diff --git a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h index 6f58d48a4ec..a99321288bd 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewContent.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTInputAccessoryViewContent : UIView @end diff --git a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h index 5e0f1396a5e..e12dea79994 100644 --- a/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h +++ b/packages/react-native/Libraries/Text/TextInput/RCTInputAccessoryViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTInputAccessoryViewManager : RCTViewManager @end diff --git a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h index 26d83797f09..f8a21a8b7ce 100644 --- a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h +++ b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSinglelineTextInputView : RCTBaseTextInputView @end diff --git a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h index e2c924587fb..c28feb91bee 100644 --- a/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h +++ b/packages/react-native/Libraries/Text/TextInput/Singleline/RCTSinglelineTextInputViewManager.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSinglelineTextInputViewManager : RCTBaseTextInputViewManager @end diff --git a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h index 2b069f122fd..b0e12aceece 100644 --- a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h +++ b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextShadowView.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTVirtualTextShadowView : RCTBaseTextShadowView @end diff --git a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextView.h b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextView.h index c2643c6c79e..8fa1b53c5dc 100644 --- a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextView.h +++ b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextView.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTVirtualTextView : UIView /** diff --git a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h index 3f1d74014ba..7ce222e588e 100644 --- a/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h +++ b/packages/react-native/Libraries/Text/VirtualText/RCTVirtualTextViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTVirtualTextViewManager : RCTBaseTextViewManager @end diff --git a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleView.h b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleView.h index 2a8a55ddc62..7a1a62153c4 100644 --- a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleView.h +++ b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperExampleView : UIView @end diff --git a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h index 70893ee2af9..2dac9dedc20 100644 --- a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h +++ b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperExampleViewController.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperExampleViewController : UIViewController @end diff --git a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h index 2225b2529d8..f7c3ba564e2 100644 --- a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h +++ b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewController.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperReactRootViewController : UIViewController - (instancetype)initWithBridge:(RCTBridge *)bridge; diff --git a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h index 51f634e5e9f..5f7a62ab068 100644 --- a/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h +++ b/packages/react-native/Libraries/Wrapper/Example/RCTWrapperReactRootViewManager.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperReactRootViewManager : RCTWrapperViewManager @end diff --git a/packages/react-native/Libraries/Wrapper/RCTWrapper.h b/packages/react-native/Libraries/Wrapper/RCTWrapper.h index 392a280cc85..3b8cc377ce3 100644 --- a/packages/react-native/Libraries/Wrapper/RCTWrapper.h +++ b/packages/react-native/Libraries/Wrapper/RCTWrapper.h @@ -16,29 +16,29 @@ // Umbrella header with macros // RCT_WRAPPER_FOR_VIEW -#define RCT_WRAPPER_FOR_VIEW(ClassName) \ - \ - NS_ASSUME_NONNULL_BEGIN \ - \ - @interface ClassName \ - ##Manager : RCTWrapperViewManager \ - \ - @end \ - \ - NS_ASSUME_NONNULL_END \ - \ - @implementation ClassName \ - ##Manager \ - \ - RCT_EXPORT_MODULE() \ - \ - - (UIView *)view \ - { \ - RCTWrapperView *wrapperView = [super view]; \ - wrapperView.contentView = [ClassName new]; \ - return wrapperView; \ - } \ - \ +#define RCT_WRAPPER_FOR_VIEW(ClassName) \ + NS_ASSUME_NONNULL_BEGIN \ + \ + __attribute__((deprecated("This API will be removed along with the legacy architecture."))) \ + @interface ClassName \ + ##Manager : RCTWrapperViewManager \ + \ + @end \ + \ + NS_ASSUME_NONNULL_END \ + \ + @implementation ClassName \ + ##Manager \ + \ + RCT_EXPORT_MODULE() \ + \ + - (UIView *)view \ + { \ + RCTWrapperView *wrapperView = [super view]; \ + wrapperView.contentView = [ClassName new]; \ + return wrapperView; \ + } \ + \ @end // RCT_WRAPPER_FOR_VIEW_CONTROLLER @@ -46,6 +46,7 @@ \ NS_ASSUME_NONNULL_BEGIN \ \ + __attribute__((deprecated("This API will be removed along with the legacy architecture."))) \ @interface ClassName \ ##Manager : RCTWrapperViewManager \ \ diff --git a/packages/react-native/Libraries/Wrapper/RCTWrapperShadowView.h b/packages/react-native/Libraries/Wrapper/RCTWrapperShadowView.h index 61e74193c0a..e554bdd0988 100644 --- a/packages/react-native/Libraries/Wrapper/RCTWrapperShadowView.h +++ b/packages/react-native/Libraries/Wrapper/RCTWrapperShadowView.h @@ -15,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperShadowView : RCTShadowView - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; diff --git a/packages/react-native/Libraries/Wrapper/RCTWrapperView.h b/packages/react-native/Libraries/Wrapper/RCTWrapperView.h index 8131b147348..e2a40bb4352 100644 --- a/packages/react-native/Libraries/Wrapper/RCTWrapperView.h +++ b/packages/react-native/Libraries/Wrapper/RCTWrapperView.h @@ -9,12 +9,14 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT -typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize); +typedef CGSize (^RCTWrapperMeasureBlock)(CGSize minimumSize, CGSize maximumSize) + __attribute__((deprecated("This API will be removed along with the legacy architecture."))); @class RCTBridge; NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperView : UIView @property (nonatomic, retain, nullable) UIView *contentView; diff --git a/packages/react-native/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h b/packages/react-native/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h index fb98b4b821f..f0dd333c303 100644 --- a/packages/react-native/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h +++ b/packages/react-native/Libraries/Wrapper/RCTWrapperViewControllerHostingView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperViewControllerHostingView : UIView @property (nonatomic, retain, nullable) UIViewController *contentViewController; diff --git a/packages/react-native/Libraries/Wrapper/RCTWrapperViewManager.h b/packages/react-native/Libraries/Wrapper/RCTWrapperViewManager.h index de6d6e35d16..9c8a71aad49 100644 --- a/packages/react-native/Libraries/Wrapper/RCTWrapperViewManager.h +++ b/packages/react-native/Libraries/Wrapper/RCTWrapperViewManager.h @@ -13,6 +13,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTWrapperViewManager : RCTViewManager - (RCTWrapperView *)view NS_REQUIRES_SUPER; diff --git a/packages/react-native/React/Views/RCTActivityIndicatorView.h b/packages/react-native/React/Views/RCTActivityIndicatorView.h index 20a66009b62..0f0ae921526 100644 --- a/packages/react-native/React/Views/RCTActivityIndicatorView.h +++ b/packages/react-native/React/Views/RCTActivityIndicatorView.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTActivityIndicatorView : UIActivityIndicatorView @end diff --git a/packages/react-native/React/Views/RCTActivityIndicatorViewManager.h b/packages/react-native/React/Views/RCTActivityIndicatorViewManager.h index 44b2f74b7aa..0ede6afc2c5 100644 --- a/packages/react-native/React/Views/RCTActivityIndicatorViewManager.h +++ b/packages/react-native/React/Views/RCTActivityIndicatorViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTConvert (UIActivityIndicatorView) + (UIActivityIndicatorViewStyle)UIActivityIndicatorViewStyle:(id)json; diff --git a/packages/react-native/React/Views/RCTDebuggingOverlayManager.h b/packages/react-native/React/Views/RCTDebuggingOverlayManager.h index 989f60324aa..f09936b2c02 100644 --- a/packages/react-native/React/Views/RCTDebuggingOverlayManager.h +++ b/packages/react-native/React/Views/RCTDebuggingOverlayManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTDebuggingOverlayManager : RCTViewManager @end diff --git a/packages/react-native/React/Views/RCTModalHostView.h b/packages/react-native/React/Views/RCTModalHostView.h index e8abaf28485..4c5b9cc3f41 100644 --- a/packages/react-native/React/Views/RCTModalHostView.h +++ b/packages/react-native/React/Views/RCTModalHostView.h @@ -18,7 +18,8 @@ @protocol RCTModalHostViewInteractor; -@interface RCTModalHostView : UIView +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTModalHostView : UIView @property (nonatomic, copy) NSString *animationType; @property (nonatomic, assign) UIModalPresentationStyle presentationStyle; diff --git a/packages/react-native/React/Views/RCTModalHostViewController.h b/packages/react-native/React/Views/RCTModalHostViewController.h index 2146da35a87..aa0c422fa00 100644 --- a/packages/react-native/React/Views/RCTModalHostViewController.h +++ b/packages/react-native/React/Views/RCTModalHostViewController.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTModalHostViewController : UIViewController @property (nonatomic, copy) void (^boundsDidChangeBlock)(CGRect newBounds); diff --git a/packages/react-native/React/Views/RCTModalHostViewManager.h b/packages/react-native/React/Views/RCTModalHostViewManager.h index 9e4806615a5..a07344796f1 100644 --- a/packages/react-native/React/Views/RCTModalHostViewManager.h +++ b/packages/react-native/React/Views/RCTModalHostViewManager.h @@ -15,9 +15,11 @@ typedef void (^RCTModalViewInteractionBlock)( UIViewController *reactViewController, UIViewController *viewController, BOOL animated, - dispatch_block_t completionBlock); + dispatch_block_t completionBlock) + __attribute__((deprecated("This API will be removed along with the legacy architecture."))); -@interface RCTModalHostViewManager : RCTViewManager +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTModalHostViewManager : RCTViewManager /** * `presentationBlock` and `dismissalBlock` allow you to control how a Modal interacts with your case, diff --git a/packages/react-native/React/Views/RCTModalManager.h b/packages/react-native/React/Views/RCTModalManager.h index 3ff4b6a081c..9f3974ab1f4 100644 --- a/packages/react-native/React/Views/RCTModalManager.h +++ b/packages/react-native/React/Views/RCTModalManager.h @@ -12,7 +12,8 @@ #import #import -@interface RCTModalManager : RCTEventEmitter +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTModalManager : RCTEventEmitter - (void)modalDismissed:(NSNumber *)modalID; diff --git a/packages/react-native/React/Views/RCTRootShadowView.h b/packages/react-native/React/Views/RCTRootShadowView.h index aecfc4d0a6e..4755a5a9de5 100644 --- a/packages/react-native/React/Views/RCTRootShadowView.h +++ b/packages/react-native/React/Views/RCTRootShadowView.h @@ -8,6 +8,7 @@ #import #import +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTRootShadowView : RCTShadowView /** diff --git a/packages/react-native/React/Views/RCTSwitch.h b/packages/react-native/React/Views/RCTSwitch.h index b92d57e5ca5..6246b967ba1 100644 --- a/packages/react-native/React/Views/RCTSwitch.h +++ b/packages/react-native/React/Views/RCTSwitch.h @@ -11,6 +11,7 @@ #import +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSwitch : UISwitch @property (nonatomic, assign) BOOL wasOn; diff --git a/packages/react-native/React/Views/RCTSwitchManager.h b/packages/react-native/React/Views/RCTSwitchManager.h index eada0a5d08f..86096f3a886 100644 --- a/packages/react-native/React/Views/RCTSwitchManager.h +++ b/packages/react-native/React/Views/RCTSwitchManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSwitchManager : RCTViewManager @end diff --git a/packages/react-native/React/Views/RefreshControl/RCTRefreshControl.h b/packages/react-native/React/Views/RefreshControl/RCTRefreshControl.h index 87423cbcca0..ed563c2a0e9 100644 --- a/packages/react-native/React/Views/RefreshControl/RCTRefreshControl.h +++ b/packages/react-native/React/Views/RefreshControl/RCTRefreshControl.h @@ -12,7 +12,8 @@ #import #import -@interface RCTRefreshControl : UIRefreshControl +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTRefreshControl : UIRefreshControl @property (nonatomic, copy) NSString *title; @property (nonatomic, copy) RCTDirectEventBlock onRefresh; diff --git a/packages/react-native/React/Views/RefreshControl/RCTRefreshControlManager.h b/packages/react-native/React/Views/RefreshControl/RCTRefreshControlManager.h index 6b4dfe90231..5d4bf433b5b 100644 --- a/packages/react-native/React/Views/RefreshControl/RCTRefreshControlManager.h +++ b/packages/react-native/React/Views/RefreshControl/RCTRefreshControlManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTRefreshControlManager : RCTViewManager @end diff --git a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaShadowView.h b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaShadowView.h index 38f3067dbbe..a67662caeb1 100644 --- a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaShadowView.h +++ b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaShadowView.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSafeAreaShadowView : RCTShadowView @end diff --git a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaView.h b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaView.h index 411a57a3ba9..5794cfa80d9 100644 --- a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaView.h +++ b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaView.h @@ -15,6 +15,7 @@ NS_ASSUME_NONNULL_BEGIN @class RCTBridge; +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSafeAreaView : RCTView - (instancetype)initWithBridge:(RCTBridge *)bridge; diff --git a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h index c5ea18bfe31..37a433764a1 100644 --- a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h +++ b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewLocalData.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSafeAreaViewLocalData : NSObject - (instancetype)initWithInsets:(UIEdgeInsets)insets; diff --git a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewManager.h b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewManager.h index 2b5d8e6b7d7..0930a3d02fc 100644 --- a/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewManager.h +++ b/packages/react-native/React/Views/SafeAreaView/RCTSafeAreaViewManager.h @@ -11,6 +11,7 @@ NS_ASSUME_NONNULL_BEGIN +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTSafeAreaViewManager : RCTViewManager @end diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollContentShadowView.h b/packages/react-native/React/Views/ScrollView/RCTScrollContentShadowView.h index 7f04bc72989..500e8b7228a 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollContentShadowView.h +++ b/packages/react-native/React/Views/ScrollView/RCTScrollContentShadowView.h @@ -11,6 +11,7 @@ #import +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTScrollContentShadowView : RCTShadowView @end diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollContentView.h b/packages/react-native/React/Views/ScrollView/RCTScrollContentView.h index aaec3406f75..c4653c60d72 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollContentView.h +++ b/packages/react-native/React/Views/ScrollView/RCTScrollContentView.h @@ -11,6 +11,7 @@ #import +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTScrollContentView : RCTView @end diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollContentViewManager.h b/packages/react-native/React/Views/ScrollView/RCTScrollContentViewManager.h index 1546f5eb11d..c379c922a08 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollContentViewManager.h +++ b/packages/react-native/React/Views/ScrollView/RCTScrollContentViewManager.h @@ -9,6 +9,7 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTScrollContentViewManager : RCTViewManager @end diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollView.h b/packages/react-native/React/Views/ScrollView/RCTScrollView.h index 6bb74ebfae5..21beacf11c5 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollView.h +++ b/packages/react-native/React/Views/ScrollView/RCTScrollView.h @@ -17,7 +17,8 @@ @protocol UIScrollViewDelegate; -@interface RCTScrollView : RCTView +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) +@interface RCTScrollView : RCTView - (instancetype)initWithEventDispatcher:(id)eventDispatcher NS_DESIGNATED_INITIALIZER; diff --git a/packages/react-native/React/Views/ScrollView/RCTScrollViewManager.h b/packages/react-native/React/Views/ScrollView/RCTScrollViewManager.h index 6e0ec15bda5..5ca2e223650 100644 --- a/packages/react-native/React/Views/ScrollView/RCTScrollViewManager.h +++ b/packages/react-native/React/Views/ScrollView/RCTScrollViewManager.h @@ -10,12 +10,14 @@ #ifndef RCT_FIT_RM_OLD_COMPONENT +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTConvert (UIScrollView) + (UIScrollViewKeyboardDismissMode)UIScrollViewKeyboardDismissMode:(id)json; @end +__attribute__((deprecated("This API will be removed along with the legacy architecture."))) @interface RCTScrollViewManager : RCTViewManager @end