diff --git a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt index 536eb5f..857ae67 100644 --- a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt +++ b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt @@ -103,13 +103,6 @@ class TrueSheetView(context: Context) : eventDispatcher?.dispatchEvent(DismissEvent(surfaceId, id)) } - // Configure when showing and size changed - setOnSizeChangeListener(object : RootSheetView.OnSizeChangeListener { - override fun onSizeChange(width: Int, height: Int) { - maxScreenHeight = height - } - }) - // Configure sheet behavior events behavior.addBottomSheetCallback( object : BottomSheetBehavior.BottomSheetCallback() { diff --git a/example/src/sheets/ScrollViewSheet.tsx b/example/src/sheets/ScrollViewSheet.tsx index bcdb1b9..ef2a5c2 100644 --- a/example/src/sheets/ScrollViewSheet.tsx +++ b/example/src/sheets/ScrollViewSheet.tsx @@ -13,6 +13,7 @@ export const ScrollViewSheet = forwardRef((props: ScrollViewSheetProps, ref: Ref return ( console.log('Sheet ScrollView dismissed!')} onPresent={() => console.log(`Sheet ScrollView presented!`)}