Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/react-native/React/Base/RCTDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
#endif

#ifndef RCT_ENABLE_INSPECTOR
#if (RCT_DEV || RCT_REMOTE_PROFILE) && __has_include(<React/RCTInspectorDevServerHelper.h>)
#if (RCT_DEV || RCT_REMOTE_PROFILE)
#define RCT_ENABLE_INSPECTOR 1
#else
#define RCT_ENABLE_INSPECTOR 0
Expand Down
4 changes: 4 additions & 0 deletions packages/react-native/React/Base/RCTRootView.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ extern
* like any ordinary UIView. You can have multiple RCTRootViews on screen at
* once, all controlled by the same JavaScript application.
*/
#pragma clang diagnostic push
#pragma clang diagnostic warning "-Wdeprecated"
__deprecated_msg("This API will be removed along with the legacy architecture.") @interface RCTRootView : UIView

/**
Expand Down Expand Up @@ -178,4 +180,6 @@ __deprecated_msg("This API will be removed along with the legacy architecture.")

@end

#pragma clang diagnostic pop

NS_ASSUME_NONNULL_END
7 changes: 5 additions & 2 deletions packages/react-native/React/Base/RCTRootViewDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
*/

#import <Foundation/Foundation.h>

@class RCTRootView;
#import <React/RCTRootView.h>

@protocol RCTRootViewDelegate <NSObject>

Expand All @@ -25,6 +24,10 @@
* The new intrinsic content size is available via the `intrinsicContentSize`
* property of the root view. The view will not resize itself.
*/

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
- (void)rootViewDidChangeIntrinsicSize:(RCTRootView *)rootView;
#pragma clang diagnostic pop

@end
3 changes: 3 additions & 0 deletions packages/react-native/React/Base/Surface/RCTSurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ NS_ASSUME_NONNULL_BEGIN
* * ability to create a UIView instance on demand (later);
* * ability to communicate the current stage of the surface granularly.
*/
#pragma clang diagnostic push
#pragma clang diagnostic warning "-Wdeprecated"
__deprecated_msg("This API will be removed along with the legacy architecture.") @interface RCTSurface
: NSObject<RCTSurfaceProtocol>
#pragma clang diagnostic pop

- (instancetype)initWithBridge:(RCTBridge *)bridge
moduleName:(NSString *)moduleName
Expand Down
10 changes: 7 additions & 3 deletions packages/react-native/React/Base/Surface/RCTSurfaceDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@

#import <UIKit/UIKit.h>

#import <React/RCTSurface.h>
#import <React/RCTSurfaceStage.h>

NS_ASSUME_NONNULL_BEGIN

@class RCTSurface;

@protocol RCTSurfaceDelegate <NSObject>

@optional
Expand All @@ -21,13 +20,18 @@ NS_ASSUME_NONNULL_BEGIN
* Notifies a receiver that a surface transitioned to a new stage.
* See `RCTSurfaceStage` for more details.
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
- (void)surface:(RCTSurface *)surface didChangeStage:(RCTSurfaceStage)stage;

#pragma clang diagnostic pop
/**
* Notifies a receiver that root view got a new (intrinsic) size during the last
* layout pass.
*/
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
- (void)surface:(RCTSurface *)surface didChangeIntrinsicSize:(CGSize)intrinsicSize;
#pragma clang diagnostic pop

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
#import <React/RCTSurfaceSizeMeasureMode.h>
#import <React/RCTSurfaceStage.h>

@class RCTBridge;
@class RCTSurface;

typedef UIView *_Nullable (^RCTSurfaceHostingViewActivityIndicatorViewFactory)(void);

NS_ASSUME_NONNULL_BEGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

@property (nonatomic, strong, readonly) RCTDevMenuConfiguration *__nullable devMenuConfiguration;

- (instancetype)initWithDevMenuConfiguration:(RCTDevMenuConfiguration *__nullable)devMenuConfiguration;
- (void)decorate:(id<RCTBridgeModule>)devMenuModule;
- (instancetype _Nonnull)initWithDevMenuConfiguration:(RCTDevMenuConfiguration *__nullable)devMenuConfiguration;
- (void)decorate:(id<RCTBridgeModule> _Nonnull)devMenuModule;

#endif

Expand Down
5 changes: 5 additions & 0 deletions packages/react-native/React/Profiler/RCTProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* using it.
*/

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"

RCT_EXTERN __deprecated_msg("This API will be removed along with the legacy architecture.") NSString *const
RCTProfileDidStartProfiling;
RCT_EXTERN __deprecated_msg("This API will be removed along with the legacy architecture.") NSString *const
Expand Down Expand Up @@ -261,3 +264,5 @@ RCT_EXTERN void RCTProfileHideControls(void)
#define RCTProfileHideControls(...)

#endif

#pragma clang diagnostic pop
8 changes: 6 additions & 2 deletions packages/react-native/React/Views/ScrollView/RCTScrollView.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@

@protocol UIScrollViewDelegate;

#pragma clang diagnostic push
#pragma clang diagnostic warning "-Wdeprecated"
__attribute__((deprecated("This API will be removed along with the legacy architecture.")))
@interface RCTScrollView : RCTView<UIScrollViewDelegate, RCTScrollableProtocol, RCTAutoInsetsProtocol>
#pragma clang diagnostic pop

- (instancetype)initWithEventDispatcher:(id<RCTEventDispatcherProtocol>)eventDispatcher NS_DESIGNATED_INITIALIZER;

Expand Down Expand Up @@ -69,9 +72,10 @@ __attribute__((deprecated("This API will be removed along with the legacy archit
@end

@interface UIView (RCTScrollView)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated"
- (void)reactUpdateResponderOffsetForScrollView:(RCTScrollView *)scrollView;

#pragma clang diagnostic pop
@end

@interface RCTScrollView (Internal)
Expand Down
Loading