From 975761b5d543bcdf03aacc0fa470395c982db94f Mon Sep 17 00:00:00 2001 From: Hailey Date: Wed, 9 Oct 2024 23:34:55 -0700 Subject: [PATCH] remove updateLayout --- modules/bottom-sheet/ios/BottomSheetModule.swift | 5 +---- modules/bottom-sheet/src/BottomSheetNativeComponent.tsx | 4 ---- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/bottom-sheet/ios/BottomSheetModule.swift b/modules/bottom-sheet/ios/BottomSheetModule.swift index 488349d2de..5081fda6a5 100644 --- a/modules/bottom-sheet/ios/BottomSheetModule.swift +++ b/modules/bottom-sheet/ios/BottomSheetModule.swift @@ -19,13 +19,10 @@ public class BottomSheetModule: Module { view.dismiss() } - AsyncFunction("updateLayout") { (view: SheetView) in - } - Prop("containerBackgroundColor") { (view: SheetView, prop: UIColor) in view.containerBackgroundColor = prop } - + Prop("cornerRadius") { (view: SheetView, prop: Float) in view.cornerRadius = CGFloat(prop) } diff --git a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx index a43abc50d8..16c4e86fde 100644 --- a/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx +++ b/modules/bottom-sheet/src/BottomSheetNativeComponent.tsx @@ -53,10 +53,6 @@ export class BottomSheetNativeComponent extends React.Component< this.props.onStateChange?.(event) } - private updateLayout = () => { - this.ref.current?.updateLayout() - } - static dismissAll = async () => { await NativeModule.dismissAll() }