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
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageShadowView.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

#import <React/RCTShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@interface RCTImageShadowView : RCTShadowView

@end

#endif
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageShadowView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#import <React/RCTLog.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@implementation RCTImageShadowView

- (BOOL)isYogaLeafNode
Expand All @@ -22,3 +24,5 @@ - (BOOL)canHaveSubviews
}

@end

#endif
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageView.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#import <React/RCTView.h>
#import <UIKit/UIKit.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@class RCTBridge;
@class RCTImageSource;

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

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#import <React/RCTUtils.h>
#import <React/UIView+React.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

/**
* Determines whether an image of `currentSize` should be reloaded for display
* at `idealSize`.
Expand Down Expand Up @@ -502,3 +504,5 @@ - (void)dealloc
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageViewManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

#import <React/RCTViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@interface RCTImageViewManager : RCTViewManager

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Image/RCTImageViewManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTImageViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <UIKit/UIKit.h>

#import <React/RCTConvert.h>
Expand Down Expand Up @@ -114,3 +116,5 @@ - (UIView *)view
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import "RCTTextAttributes.h"

NS_ASSUME_NONNULL_BEGIN
Expand All @@ -27,3 +29,5 @@ extern NSString *const RCTBaseTextShadowViewEmbeddedShadowViewAttributeName;
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTBaseTextShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTShadowView+Layout.h>

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

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

#import <React/RCTViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTBaseTextViewManager : RCTViewManager

@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTBaseTextViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@implementation RCTBaseTextViewManager

RCT_EXPORT_MODULE(RCTBaseText)
Expand Down Expand Up @@ -58,3 +60,5 @@ - (RCTShadowView *)shadowView
RCT_REMAP_SHADOW_PROPERTY(textTransform, textAttributes.textTransform, RCTTextTransform)

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Text/RCTTextAttributes.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
#import <React/RCTTextDecorationLineType.h>
#import <React/RCTTextTransform.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

extern NSString *const RCTTextAttributesIsHighlightedAttributeName;
Expand Down Expand Up @@ -98,3 +100,5 @@ extern NSString *const RCTTextAttributesTagAttributeName;
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Text/RCTTextAttributes.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTTextAttributes.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTAssert.h>
#import <React/RCTFont.h>
#import <React/RCTLog.h>
Expand Down Expand Up @@ -352,3 +354,5 @@ - (BOOL)isEqual:(RCTTextAttributes *)textAttributes
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTRawTextShadowView : RCTShadowView
Expand All @@ -16,3 +18,5 @@ NS_ASSUME_NONNULL_BEGIN
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTRawTextShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTShadowView+Layout.h>

@implementation RCTRawTextShadowView
Expand All @@ -32,3 +34,5 @@ - (NSString *)description
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

#import <React/RCTViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTRawTextViewManager : RCTViewManager

@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTRawTextViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTRawTextShadowView.h>

@implementation RCTRawTextViewManager
Expand All @@ -26,3 +28,5 @@ - (RCTShadowView *)shadowView
RCT_EXPORT_SHADOW_PROPERTY(text, NSString)

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Text/Text/RCTTextShadowView.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import "RCTBaseTextShadowView.h"

NS_ASSUME_NONNULL_BEGIN
Expand All @@ -26,3 +28,5 @@ NS_ASSUME_NONNULL_BEGIN
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTTextShadowView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTBridge.h>
#import <React/RCTShadowView+Layout.h>
#import <React/RCTUIManager.h>
Expand Down Expand Up @@ -464,3 +466,5 @@ static float RCTTextShadowViewBaseline(YGNodeConstRef node, const float width, c
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Text/Text/RCTTextView.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTComponent.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
Expand All @@ -27,3 +29,5 @@ NS_ASSUME_NONNULL_BEGIN
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
4 changes: 4 additions & 0 deletions packages/react-native/Libraries/Text/Text/RCTTextView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTTextView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <MobileCoreServices/UTCoreTypes.h>

#import <React/RCTUtils.h>
Expand Down Expand Up @@ -292,3 +294,5 @@ - (void)copy:(id)sender
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@

#import <React/RCTViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import "RCTBaseTextViewManager.h"

@interface RCTTextViewManager : RCTBaseTextViewManager

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTTextViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTShadowView+Layout.h>
#import <React/RCTShadowView.h>
#import <React/RCTUIManager.h>
Expand Down Expand Up @@ -91,3 +93,5 @@ - (void)handleDidUpdateMultiplierNotification
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

#import "RCTBaseTextInputView.h"

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTMultilineTextInputView : RCTBaseTextInputView

@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import <React/RCTMultilineTextInputView.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

#import <React/RCTUtils.h>

#import <React/RCTUITextView.h>
Expand Down Expand Up @@ -61,3 +63,5 @@ - (void)scrollViewDidScroll:(UIScrollView *)scrollView
}

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@

#import "RCTBaseTextInputViewManager.h"

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTMultilineTextInputViewManager : RCTBaseTextInputViewManager

@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#import <React/RCTMultilineTextInputView.h>
#import <React/RCTMultilineTextInputViewManager.h>

#ifndef RCT_FIT_RM_OLD_COMPONENT

@implementation RCTMultilineTextInputViewManager

RCT_EXPORT_MODULE()
Expand All @@ -22,3 +24,5 @@ - (UIView *)view
RCT_REMAP_VIEW_PROPERTY(dataDetectorTypes, backedTextInputView.dataDetectorTypes, UIDataDetectorTypes)

@end

#endif // RCT_FIT_RM_OLD_COMPONENT
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

#import "RCTBaseTextShadowView.h"

#ifndef RCT_FIT_RM_OLD_COMPONENT

NS_ASSUME_NONNULL_BEGIN

@interface RCTBaseTextInputShadowView : RCTBaseTextShadowView
Expand All @@ -23,3 +25,5 @@ NS_ASSUME_NONNULL_BEGIN
@end

NS_ASSUME_NONNULL_END

#endif // RCT_FIT_RM_OLD_COMPONENT
Loading
Loading