add initialHeight prop

This commit is contained in:
Samuel Newman
2024-10-10 16:22:07 +03:00
parent 2841944789
commit 9ac49485e2
9 changed files with 86 additions and 34 deletions
@@ -33,6 +33,10 @@ class BottomSheetModule : Module() {
view.disableDrag = prop
}
Prop("initialHeight") { view: BottomSheetView, prop: String ->
view.minHeight = prop
}
Prop("minHeight") { view: BottomSheetView, prop: Float ->
view.minHeight = prop
}
@@ -52,6 +52,8 @@ class BottomSheetView(
}
var preventExpansion = false
var initialHeight = "auto"
var minHeight = 0f
set(value) {
field =