bring some android stuff back up to date

This commit is contained in:
Hailey
2024-10-02 23:03:22 -07:00
parent cc81342256
commit 1b7e66f700
3 changed files with 21 additions and 165 deletions
+4 -3
View File
@@ -96,7 +96,7 @@ class SheetView: ExpoView, UISheetPresentationControllerDelegate {
return
}
self.present(contentHeight: innerView.subviews[0].frame.size.height)
self.present()
}
private func destroy() {
@@ -109,9 +109,10 @@ class SheetView: ExpoView, UISheetPresentationControllerDelegate {
// MARK: - Presentation
func present(contentHeight: CGFloat) {
func present() {
guard !self.isOpen,
let innerView = self.innerView,
let contentHeight = innerView.subviews.first?.frame.height,
let rvc = self.reactViewController() else {
return
}
@@ -135,7 +136,7 @@ class SheetView: ExpoView, UISheetPresentationControllerDelegate {
}
func updateLayout() {
if let contentHeight = self.innerView?.subviews[0].frame.size.height {
if let contentHeight = self.innerView?.subviews.first?.frame.size.height {
self.sheetVc?.updateDetents(contentHeight: self.clampHeight(contentHeight),
preventExpansion: self.preventExpansion)
}