Browse Source

Merge pull request #245 from egunsoma/ios-header-fix

#244 #243 Replace condition of RN40 in headers
wkh237 7 years ago
parent
commit
40d78628d9

+ 1
- 1
src/ios/RNFetchBlob/RNFetchBlob.h View File

@@ -12,7 +12,7 @@
12 12
 #define RNFetchBlob_h
13 13
 
14 14
 
15
-#ifdef RN040_IMPORT
15
+#ifdef __has_include(<React/RCTBridge.h>)
16 16
 #import <React/RCTLog.h>
17 17
 #import <React/RCTRootView.h>
18 18
 #import <React/RCTBridge.h>

+ 1
- 1
src/ios/RNFetchBlobFS.h View File

@@ -12,7 +12,7 @@
12 12
 #import "RNFetchBlob.h"
13 13
 
14 14
 #import <Foundation/Foundation.h>
15
-#ifdef RN040_IMPORT
15
+#ifdef __has_include(<React/RCTBridgeModule.h>)
16 16
 #import <React/RCTBridgeModule.h>
17 17
 #else
18 18
 #import "RCTBridgeModule.h"

+ 1
- 1
src/ios/RNFetchBlobFS.m View File

@@ -13,7 +13,7 @@
13 13
 #import "IOS7Polyfill.h"
14 14
 @import AssetsLibrary;
15 15
 
16
-#ifdef RN040_IMPORT
16
+#ifdef __has_include(<React/RCTBridge.h>)
17 17
 #import <React/RCTBridge.h>
18 18
 #import <React/RCTEventDispatcher.h>
19 19
 #else

+ 1
- 1
src/ios/RNFetchBlobNetwork.h View File

@@ -10,7 +10,7 @@
10 10
 #import "RNFetchBlobProgress.h"
11 11
 #import "RNFetchBlobFS.h"
12 12
 
13
-#ifdef RN040_IMPORT
13
+#ifdef __has_include(<React/RCTBridgeModule.h>)
14 14
 #import <React/RCTBridgeModule.h>
15 15
 #else
16 16
 #import "RCTBridgeModule.h"

+ 1
- 1
src/ios/RNFetchBlobNetwork.m View File

@@ -17,7 +17,7 @@
17 17
 #import <CommonCrypto/CommonDigest.h>
18 18
 #import "RNFetchBlobProgress.h"
19 19
 
20
-#ifdef RN040_IMPORT
20
+#ifdef __has_include(<React/RCTBridge.h>)
21 21
 #import <React/RCTRootView.h>
22 22
 #import <React/RCTLog.h>
23 23
 #import <React/RCTEventDispatcher.h>

+ 1
- 1
src/ios/RNFetchBlobReqBuilder.m View File

@@ -13,7 +13,7 @@
13 13
 #import "RNFetchBlobFS.h"
14 14
 #import "IOS7Polyfill.h"
15 15
 
16
-#ifdef RN040_IMPORT
16
+#ifdef __has_include(<React/RCTLog.h>)
17 17
 #import <React/RCTLog.h>
18 18
 #else
19 19
 #import "RCTLog.h"