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 areaHeight = sheetHeight - bottomInset -
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nitro-modal",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "react native native modal",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",