Skip to content

Commit

Permalink
chore(docs): add note that fitToContents includes small bottom padd…
Browse files Browse the repository at this point in the history
…ing on iOS (#2701)

## Description

This is a small discrepancy between platforms, which might be patched in
next major if needed (created ticket on internal board)

Closes #2697 (see discussion)

## Changes

Updated types of `sheetAllowedDetents`.

## Test code and steps to reproduce

N/A

## Checklist

- [ ] Ensured that CI passes
  • Loading branch information
kkafar authored Feb 17, 2025
1 parent cc50558 commit 8de5d70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ export interface ScreenProps extends ViewProps {
* while **Android is limited to three**.
*
* There is also possibility to specify `fitToContents` literal, which intents to set the sheet height
* to the height of its contents.
* to the height of its contents. On iOS `fitToContents` currently also includes small padding accounting for bottom inset.
*
* Please note that the array **must** be sorted in ascending order. This invariant is verified only in developement mode,
* where violation results in error.
Expand Down

0 comments on commit 8de5d70

Please sign in to comment.