Skip to content

Commit 50b82b2

Browse files
authored
Merge pull request #791 from stefan-tuertscher/fix-legacy-bridge
Fix Legacy Bridge
2 parents f1716eb + 928f587 commit 50b82b2

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

ios/RCTContacts/RCTContacts.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
#import <React/RCTBridgeModule.h>
22
#import <Contacts/Contacts.h>
33
#import <ContactsUI/ContactsUI.h>
4-
#import <Foundation/Foundation.h>
5-
64
#ifdef RCT_NEW_ARCH_ENABLED
7-
85
#import <RNContactsSpec/RNContactsSpec.h>
9-
@interface RCTContacts: NSObject <NativeContactsSpec, CNContactViewControllerDelegate>
10-
11-
#else
6+
#endif
127

13-
#import <React/RCTBridgeModule.h>
148
@interface RCTContacts : NSObject <RCTBridgeModule, CNContactViewControllerDelegate>
159

16-
#endif
17-
1810
@end
1911

12+
#ifdef RCT_NEW_ARCH_ENABLED
13+
@interface RCTContacts: NSObject <NativeContactsSpec, CNContactViewControllerDelegate>
14+
15+
@end
16+
#endif

0 commit comments

Comments
 (0)