Skip to content

Commit

Permalink
Fix build error when inheriting RCTAppDelegate in swift module
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Dec 16, 2022
1 parent 03b17d9 commit 614dab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/AppDelegate/RCTAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>

#if RCT_NEW_ARCH_ENABLED
#if RCT_NEW_ARCH_ENABLED && __cplusplus
// When the new architecture is enabled, the RCTAppDelegate imports some additional headers
#import <React/RCTCxxBridgeDelegate.h>
#import <React/RCTSurfacePresenterBridgeAdapter.h>
Expand Down Expand Up @@ -100,7 +100,7 @@

@end

#if RCT_NEW_ARCH_ENABLED
#if RCT_NEW_ARCH_ENABLED && __cplusplus
/// Extension that makes the RCTAppDelegate conform to New Architecture delegates
@interface RCTAppDelegate () <RCTTurboModuleManagerDelegate, RCTCxxBridgeDelegate>

Expand Down

0 comments on commit 614dab4

Please sign in to comment.