From e11970a04495044409105b3cb45af5fe31ed4787 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 30 Sep 2024 18:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix:=20Paper=20Build=20Errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/RNIModalSheetView/RNIModalSheetViewController.swift | 2 +- ios/RNIModalSheetView/RNIModalSheetViewManager.mm | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ios/RNIModalSheetView/RNIModalSheetViewController.swift b/ios/RNIModalSheetView/RNIModalSheetViewController.swift index d49f909a..e3086976 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewController.swift +++ b/ios/RNIModalSheetView/RNIModalSheetViewController.swift @@ -57,7 +57,7 @@ open class RNIModalSheetViewController: ModalSheetViewControllerLifecycleNotifie // MARK: Setup Constraints #if !RCT_NEW_ARCH_ENABLED - rootReactView.removeAllAncestorConstraints(); + mainSheetContentParent.removeAllAncestorConstraints(); #endif self.view.addSubview(mainSheetContentParent); diff --git a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm index c7b5872d..0a1459ed 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm +++ b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm @@ -12,6 +12,8 @@ #import #import +#import "react-native-ios-utilities/RNIBaseViewUtils.h" + @interface RNIModalSheetViewManager : RCTViewManager @end