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