react-native-nitro-modal 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -211,7 +211,9 @@ internal class BottomSheetPresenter(
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
val
|
|
214
|
+
val availableHeight =
|
|
215
|
+
if (SheetDetent.FITCONTENT in requested) maxContentHeight else sheetHeight - bottomInset
|
|
216
|
+
val areaHeight = availableHeight -
|
|
215
217
|
if (config.keyboardBehavior == KeyboardBehavior.RESIZE) keyboardOverlap else 0
|
|
216
218
|
val sheetWidth = minOf(coordinator.width, behavior.maxWidth.takeIf { it > 0 } ?: Int.MAX_VALUE)
|
|
217
219
|
reportContentArea(sheetWidth - systemInsets.left - systemInsets.right, areaHeight)
|