Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit 40d7862

Browse files
authored
Merge pull request #245 from egunsoma/ios-header-fix
#244 #243 Replace condition of RN40 in headers
2 parents 1b6ddbe + 18f89ec commit 40d7862

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/ios/RNFetchBlob/RNFetchBlob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define RNFetchBlob_h
1313

1414

15-
#ifdef RN040_IMPORT
15+
#ifdef __has_include(<React/RCTBridge.h>)
1616
#import <React/RCTLog.h>
1717
#import <React/RCTRootView.h>
1818
#import <React/RCTBridge.h>

src/ios/RNFetchBlobFS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#import "RNFetchBlob.h"
1313

1414
#import <Foundation/Foundation.h>
15-
#ifdef RN040_IMPORT
15+
#ifdef __has_include(<React/RCTBridgeModule.h>)
1616
#import <React/RCTBridgeModule.h>
1717
#else
1818
#import "RCTBridgeModule.h"

src/ios/RNFetchBlobFS.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#import "IOS7Polyfill.h"
1414
@import AssetsLibrary;
1515

16-
#ifdef RN040_IMPORT
16+
#ifdef __has_include(<React/RCTBridge.h>)
1717
#import <React/RCTBridge.h>
1818
#import <React/RCTEventDispatcher.h>
1919
#else

src/ios/RNFetchBlobNetwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#import "RNFetchBlobProgress.h"
1111
#import "RNFetchBlobFS.h"
1212

13-
#ifdef RN040_IMPORT
13+
#ifdef __has_include(<React/RCTBridgeModule.h>)
1414
#import <React/RCTBridgeModule.h>
1515
#else
1616
#import "RCTBridgeModule.h"

src/ios/RNFetchBlobNetwork.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#import <CommonCrypto/CommonDigest.h>
1818
#import "RNFetchBlobProgress.h"
1919

20-
#ifdef RN040_IMPORT
20+
#ifdef __has_include(<React/RCTBridge.h>)
2121
#import <React/RCTRootView.h>
2222
#import <React/RCTLog.h>
2323
#import <React/RCTEventDispatcher.h>

src/ios/RNFetchBlobReqBuilder.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#import "RNFetchBlobFS.h"
1414
#import "IOS7Polyfill.h"
1515

16-
#ifdef RN040_IMPORT
16+
#ifdef __has_include(<React/RCTLog.h>)
1717
#import <React/RCTLog.h>
1818
#else
1919
#import "RCTLog.h"

0 commit comments

Comments
 (0)