Skip to content
Merged
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
16 changes: 10 additions & 6 deletions ios/RNSFullWindowOverlay.mm
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ @implementation RNSFullWindowOverlay {
RCTSurfaceTouchHandler *_touchHandler;
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)init
{
if (self = [super init]) {
Expand Down Expand Up @@ -227,6 +221,16 @@ - (void)updateProps:(const facebook::react::Props::Shared &)props
[super updateProps:props oldProps:oldProps];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSFullWindowOverlayCls(void)
Expand Down
14 changes: 9 additions & 5 deletions ios/RNSModalScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ - (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
}];
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
+ (react::ComponentDescriptorProvider)componentDescriptorProvider
{
[super load];
return react::concreteComponentDescriptorProvider<react::RNSModalScreenComponentDescriptor>();
}

+ (react::ComponentDescriptorProvider)componentDescriptorProvider
#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
return react::concreteComponentDescriptorProvider<react::RNSModalScreenComponentDescriptor>();
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Expand Down
16 changes: 10 additions & 6 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@ @implementation RNSScreenView {
NSMutableArray<UIView *> *_reactSubviews;
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
Expand Down Expand Up @@ -1432,6 +1426,16 @@ - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask
#endif // !TARGET_OS_TV && !TARGET_OS_VISION
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSScreenCls(void)
Expand Down
17 changes: 11 additions & 6 deletions ios/RNSScreenContainer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ - (void)layoutSubviews

#pragma mark-- Fabric specific

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

#pragma mark - RCTComponentViewProtocol

- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index
Expand Down Expand Up @@ -316,6 +310,17 @@ - (void)prepareForRecycle
[_controller willMoveToParentViewController:nil];
[_controller removeFromParentViewController];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSScreenContainerCls(void)
Expand Down
4 changes: 4 additions & 0 deletions ios/RNSScreenContentWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,15 @@ - (void)updateLayoutMetrics:(const facebook::react::LayoutMetrics &)layoutMetric
return RNSScreenContentWrapper.class;
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Expand Down
16 changes: 10 additions & 6 deletions ios/RNSScreenFooter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ - (void)layoutSubviews
// }
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

+ (react::ComponentDescriptorProvider)componentDescriptorProvider
{
return react::concreteComponentDescriptorProvider<react::RNSScreenFooterComponentDescriptor>();
Expand All @@ -106,6 +100,16 @@ + (void)load
return RNSScreenFooter.class;
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

@implementation RNSScreenFooterManager
Expand Down
4 changes: 4 additions & 0 deletions ios/RNSScreenNavigationContainer.mm
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@ - (void)updateContainer
return react::concreteComponentDescriptorProvider<react::RNSScreenNavigationContainerComponentDescriptor>();
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Expand Down
16 changes: 10 additions & 6 deletions ios/RNSScreenStack.mm
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,6 @@ @implementation RNSScreenStackView {
UIPanGestureRecognizer *_sinkEventsPanGestureRecognizer;
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
Expand Down Expand Up @@ -1434,6 +1428,16 @@ - (void)prepareForRecycle
return react::concreteComponentDescriptorProvider<react::RNSScreenStackComponentDescriptor>();
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSScreenStackCls(void)
Expand Down
16 changes: 10 additions & 6 deletions ios/RNSScreenStackHeaderConfig.mm
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ @implementation RNSScreenStackHeaderConfig {
RCTImageLoader *_imageLoader;
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
Expand Down Expand Up @@ -1113,6 +1107,16 @@ - (void)updateState:(const facebook::react::State::Shared &)state
}
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSScreenStackHeaderConfigCls(void)
Expand Down
16 changes: 10 additions & 6 deletions ios/RNSScreenStackHeaderSubview.mm
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,6 @@ - (void)layoutSubviews
[self updateShadowStateInContextOfAncestorView:[self findNavigationBar]];
}

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
Expand Down Expand Up @@ -299,6 +293,16 @@ - (void)setHidesSharedBackground:(BOOL)hidesSharedBackground
[self configureBarButtonItem];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

@implementation RNSScreenStackHeaderSubviewManager
Expand Down
16 changes: 10 additions & 6 deletions ios/RNSSearchBar.mm
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge

#ifdef RCT_NEW_ARCH_ENABLED

// Needed because of this: https://github.com/facebook/react-native/pull/37274
+ (void)load
{
[super load];
}

- (instancetype)init
{
if (self = [super init]) {
Expand Down Expand Up @@ -467,6 +461,16 @@ + (BOOL)shouldBeRecycled
#else
#endif // RCT_NEW_ARCH_ENABLED

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS
Comment thread
kkafar marked this conversation as resolved.

@end

#ifdef RCT_NEW_ARCH_ENABLED
Expand Down
10 changes: 10 additions & 0 deletions ios/gamma/scroll-view-marker/RNSScrollViewMarkerComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ - (void)mountingTransactionDidMount:(const facebook::react::MountingTransaction
[self maybeRegisterWithSeekingAncestor];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSScrollViewMarkerCls(void)
Expand Down
10 changes: 10 additions & 0 deletions ios/gamma/split/RNSSplitHostComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,16 @@ - (nonnull RNSSplitHostComponentEventEmitter *)reactEventEmitter
return _reactEventEmitter;
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSSplitHostCls(void)
Expand Down
10 changes: 10 additions & 0 deletions ios/gamma/split/RNSSplitScreenComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,16 @@ - (void)invalidate
_controller = nil;
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSSplitScreenCls(void)
Expand Down
10 changes: 10 additions & 0 deletions ios/gamma/stack/host/RNSStackHostComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ - (void)mountingTransactionDidMount:(const facebook::react::MountingTransaction
withRenderedScreens:_renderedScreens];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSStackHostCls(void)
Expand Down
10 changes: 10 additions & 0 deletions ios/gamma/stack/screen/RNSStackScreenComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,16 @@ - (void)invalidate
[self invalidateImpl];
}

#pragma mark - Dynamic frameworks support

// Needed because of this: https://github.com/facebook/react-native/pull/37274
#ifdef RCT_DYNAMIC_FRAMEWORKS
+ (void)load
{
[super load];
}
#endif // RCT_DYNAMIC_FRAMEWORKS

@end

Class<RCTComponentViewProtocol> RNSStackScreenCls(void)
Expand Down
Loading
Loading