Skip to content

Commit

Permalink
fix(iOS): make RCTMountingTransactionObserving implementation new-a…
Browse files Browse the repository at this point in the history
…rch only (software-mansion#2624)

## Description

I've made mistake in software-mansion#2466 - the aforementioned protocol does not exist
on Paper.

## Changes

Use ifdef directive to prevent build errors.


## Test code and steps to reproduce

iOS + old-arch should just build.

## Checklist

- [ ] Ensured that CI passes
  • Loading branch information
kkafar authored Jan 16, 2025
1 parent c07e9b6 commit 07fc4a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/RNSScreenStackHeaderConfig.mm
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ + (BOOL)RNSisBlank:(NSString *)string

@end

#ifdef RCT_NEW_ARCH_ENABLED
@interface RNSScreenStackHeaderConfig () <RCTMountingTransactionObserving>
@end
#endif // RCT_NEW_ARCH_ENABLED

@implementation RNSScreenStackHeaderConfig {
NSMutableArray<RNSScreenStackHeaderSubview *> *_reactSubviews;
Expand Down

0 comments on commit 07fc4a0

Please sign in to comment.