Skip to content

Commit 630f54c

Browse files
author
Shinya Kumagai
authored
Merge pull request #21 from nikolaik/fix/ios-legacy
ios: Fix build with RN v0.39 and below
2 parents 4307f3a + d64715d commit 630f54c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

ios/ReactNativeCustomTabs/DBChromeManager.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2016 Facebook. All rights reserved.
77
//
88

9+
#if __has_include(<React/RCTBridgeModule.h>)
910
#import <React/RCTBridgeModule.h>
11+
#else
12+
#import "RCTBridgeModule.h"
13+
#endif
1014

1115
@interface DBChromeManager : NSObject<RCTBridgeModule>
1216

ios/ReactNativeCustomTabs/DBChromeManager.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
66
// Copyright © 2016 Facebook. All rights reserved.
77
//
88

9+
#if __has_include(<React/RCTUtils.h>)
910
#import <React/RCTUtils.h>
11+
#else
12+
#import "RCTUtils.h"
13+
#endif
1014
#import "DBChromeManager.h"
1115

1216
@implementation DBChromeManager

0 commit comments

Comments
 (0)