Browse Source

fix 'duplicate interface definition' #113

Yonah Forst 7 years ago
parent
commit
e7454a9c62
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      ReactNativePermissions.m

+ 5
- 2
ReactNativePermissions.m View File

@@ -10,12 +10,15 @@
10 10
 
11 11
 #import "ReactNativePermissions.h"
12 12
 
13
-#if __has_include("RCTBridge.h")
13
+#if __has_include(<React/RCTBridge.h>)
14
+  #import <React/RCTBridge.h>
15
+#elif __has_include("RCTBridge.h")
14 16
   #import "RCTBridge.h"
15 17
 #else
16
-  #import <React/RCTBridge.h>
18
+  #import "React/RCTBridge.h"
17 19
 #endif
18 20
 
21
+
19 22
 #if __has_include("RCTConvert.h")
20 23
   #import "RCTConvert.h"
21 24
 #else