From 32032f191abaa9fe537873653ae03c6bd5090ea0 Mon Sep 17 00:00:00 2001 From: Richard Hua Date: Fri, 2 Dec 2016 16:37:01 -0800 Subject: [PATCH] Fix compilation error when installed by CocoaPods in Swift projects (#627) --- ios/CodePush/CodePush.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/CodePush/CodePush.h b/ios/CodePush/CodePush.h index b600278..235d6bb 100644 --- a/ios/CodePush/CodePush.h +++ b/ios/CodePush/CodePush.h @@ -1,4 +1,9 @@ +#if __has_include("RCTEventEmitter.h") #import "RCTEventEmitter.h" +#else +#import "React/RCTEventEmitter.h" // Required when used as a Pod in a Swift project +#endif + #import @interface CodePush : RCTEventEmitter