In this article
What’s changed
- Added
maxWidthandplacementtoBottomSheetandModalBottomSheeton iOS, Android, and the web. Both props can change while the sheet is open.- Set
maxWidthto cap the sheet’s width in points, including the detent’s sideinsets. Narrower containers still use their available width. OmitmaxWidthor passInfinityfor no cap. - Set
placementto align the sheet when the cap leaves extra space. The default is'center'. Use'start'or'end'to align it with the corresponding edge in the current layout direction.
- Set
- Reduced stuttering on iOS while a sheet animates to a detent.
- Fixed a final-frame jump on iOS, Android, and the web. The sheet now slows to a stop at its target detent, most noticeably when opening from closed to full height.
This release addresses #87, #95, #131. Thanks to @Gnative for contributing.
Release card