Skip to content

Commit 8de5d70

Browse files
authored
chore(docs): add note that fitToContents includes small bottom padding 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
1 parent cc50558 commit 8de5d70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ export interface ScreenProps extends ViewProps {
303303
* while **Android is limited to three**.
304304
*
305305
* There is also possibility to specify `fitToContents` literal, which intents to set the sheet height
306-
* to the height of its contents.
306+
* to the height of its contents. On iOS `fitToContents` currently also includes small padding accounting for bottom inset.
307307
*
308308
* Please note that the array **must** be sorted in ascending order. This invariant is verified only in developement mode,
309309
* where violation results in error.

0 commit comments

Comments
 (0)