From 18d5c82ab04a1140adb64a698af9feda76a7c309 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Mon, 4 Jul 2022 12:57:02 +0200 Subject: [PATCH] Fix imports when using Swift modules When a project is using Swift modules (like Expo 44+), then imports must use the `React/
.h` form, otherwise you get a compiler error: `duplicate interface definition for class 'RCTBridgeModule'` This change should be comptabtible with React 40+, which introduced the `React/` headers. See expo/expo#15622 (comment) for the detailed investigation and fix. --- ios/RNTestFlight.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ios/RNTestFlight.h b/ios/RNTestFlight.h index ae717d2..4c410e7 100644 --- a/ios/RNTestFlight.h +++ b/ios/RNTestFlight.h @@ -1,8 +1,4 @@ -#if __has_include("RCTBridgeModule.h") -#import "RCTBridgeModule.h" -#else #import -#endif @interface RNTestFlight : NSObject