From 3dbbcbf55e985f821dab3fbed2ef6c63254e427b Mon Sep 17 00:00:00 2001 From: theohdv Date: Mon, 24 Jan 2022 17:15:39 +0100 Subject: [PATCH 1/2] fix: support expo 44 --- ios/RNBatch.h | 9 --------- 1 file changed, 9 deletions(-) diff --git a/ios/RNBatch.h b/ios/RNBatch.h index 9b7b7dd..e3af276 100644 --- a/ios/RNBatch.h +++ b/ios/RNBatch.h @@ -1,14 +1,5 @@ -#if __has_include("RCTBridgeModule.h") -#import "RCTBridgeModule.h" -#else #import -#endif - -#if __has_include("RCTEventEmitter.h") -#import "RCTEventEmitter.h" -#else #import -#endif @import Batch; From 6fb4790efae1fc107a03d66f2f979d15ad868fd3 Mon Sep 17 00:00:00 2001 From: theohdv Date: Tue, 25 Jan 2022 13:36:03 +0100 Subject: [PATCH 2/2] feat: keep compatibility wit old RN versions --- ios/RNBatch.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/ios/RNBatch.h b/ios/RNBatch.h index e3af276..933def4 100644 --- a/ios/RNBatch.h +++ b/ios/RNBatch.h @@ -1,5 +1,14 @@ -#import -#import +#if __has_include("React/RCTBridgeModule.h") + #import +#else + #import "RCTBridgeModule.h" +#endif + +#if __has_include("React/RCTEventEmitter.h") + #import +#else + #import "RCTEventEmitter.h" +#endif @import Batch;