Skip to content
This repository was archived by the owner on Jan 24, 2020. It is now read-only.

Commit fd47dd9

Browse files
praveenpererajoeferraro
authored andcommitted
Add compatibility for version >= 0.40 (#49)
* Make compatible with RN 0.40 * Make search paths compatible with our project * Revert "Make search paths compatible with our project" This reverts commit 19218bb. * Add backwards compatibility * Remove clearAll function with no callback
1 parent 8747bab commit fd47dd9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// RNCookieManagerIOS.h
2+
#if __has_include("RCTBridgeModule.h")
23
#import "RCTBridgeModule.h"
4+
#else
5+
#import <React/RCTBridgeModule.h>
6+
#endif
37

48
@interface RNCookieManagerIOS : NSObject <RCTBridgeModule>
59

6-
@end
10+
@end

RNCookieManagerIOS/RNCookieManagerIOS.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#import "RNCookieManagerIOS.h"
2+
#if __has_include("RCTConvert.h")
23
#import "RCTConvert.h"
4+
#else
5+
#import <React/RCTConvert.h>
6+
#endif
37

48
@implementation RNCookieManagerIOS
59

0 commit comments

Comments
 (0)