From d779ac215131d6b659f3ad5807468d1fb07e84bb Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 9 Dec 2024 06:09:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix:=20Initializer=20Usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/RNIModalSheetView/RNIModalSheetViewManager.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm index cb81dcc..8030663 100644 --- a/ios/RNIModalSheetView/RNIModalSheetViewManager.mm +++ b/ios/RNIModalSheetView/RNIModalSheetViewManager.mm @@ -25,7 +25,7 @@ @implementation RNIModalSheetViewManager #ifndef RCT_NEW_ARCH_ENABLED - (UIView *)view { - return [[RNIModalSheetView new] initWithBridge:self.bridge]; + return [[RNIModalSheetView alloc] initWithBridge:self.bridge]; } RNI_EXPORT_VIEW_PROPERTY(reactChildrenCount, NSNumber);