From 71124943f76e9eb7e835fdd58bf98c4114143d28 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Fri, 8 Jul 2022 15:14:17 -0700 Subject: [PATCH] fix: Modernize RCTBridgeModule import, for Swift-modules compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes several compilation errors with "Duplicate interface definition for class […]" when a project uses Expo 44+, which has Swift modules. I don't expect this to be a breaking change. Reportedly, it's safe to use #import with React Native 40+; see comment linked below. This project already uses an import of that form. See the line #import in the same file changed in this commit. Details: https://github.com/expo/expo/issues/15622#issuecomment-997225774 --- ios/LRDRCTSimpleToast/LRDRCTSimpleToast.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/LRDRCTSimpleToast/LRDRCTSimpleToast.m b/ios/LRDRCTSimpleToast/LRDRCTSimpleToast.m index ffbf96a..10cc350 100644 --- a/ios/LRDRCTSimpleToast/LRDRCTSimpleToast.m +++ b/ios/LRDRCTSimpleToast/LRDRCTSimpleToast.m @@ -6,7 +6,7 @@ // Copyright © 2016年 luoruidong. All rights reserved. // #import -#import "RCTBridgeModule.h" +#import #import "UIView+Toast.h" #import