Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 32032f1

Browse files
author
Richard Hua
authored
Fix compilation error when installed by CocoaPods in Swift projects (#627)
1 parent 76b4f4d commit 32032f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/CodePush/CodePush.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
#if __has_include("RCTEventEmitter.h")
12
#import "RCTEventEmitter.h"
3+
#else
4+
#import "React/RCTEventEmitter.h" // Required when used as a Pod in a Swift project
5+
#endif
6+
27
#import <Foundation/Foundation.h>
38

49
@interface CodePush : RCTEventEmitter

0 commit comments

Comments
 (0)