Skip to content
Open
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
4 changes: 4 additions & 0 deletions packages/react-native/React/Views/RCTComponentData.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import <Foundation/Foundation.h>

#import <React/RCTComponent.h>
Expand Down Expand Up @@ -48,3 +50,5 @@ NS_ASSUME_NONNULL_BEGIN
RCT_EXTERN NSString *RCTViewManagerModuleNameForClass(Class managerClass);

NS_ASSUME_NONNULL_END

#endif // RCT_REMOVE_LEGACY_COMPONENT_INTEROP
4 changes: 4 additions & 0 deletions packages/react-native/React/Views/RCTComponentData.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import "RCTComponentData.h"

#import <objc/message.h>
Expand Down Expand Up @@ -550,3 +552,5 @@ - (void)setProps:(NSDictionary<NSString *, id> *)props forView:(id<RCTComponent>
}

@end

#endif // RCT_REMOVE_LEGACY_COMPONENT_INTEROP
4 changes: 4 additions & 0 deletions packages/react-native/React/Views/RCTViewManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary<NSNumber *, UIView *> *viewRegistry);

#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

@interface RCTViewManager : NSObject <RCTBridgeModule>

/**
Expand Down Expand Up @@ -119,3 +121,5 @@ typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary<NSNu
CGFloat RCTJSONParseOnlyNumber(id json);

@end

#endif // RCT_REMOVE_LEGACY_COMPONENT_INTEROP
4 changes: 4 additions & 0 deletions packages/react-native/React/Views/RCTViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#ifndef RCT_REMOVE_LEGACY_COMPONENT_INTEROP

#import "RCTViewManager.h"

#import "RCTAssert.h"
Expand Down Expand Up @@ -744,3 +746,5 @@ CGFloat RCTJSONParseOnlyNumber(id json)
}

@end

#endif // RCT_REMOVE_LEGACY_COMPONENT_INTEROP
Loading