Release 4.0.0-beta
Pre-release
Pre-release
π New features
- iOS: Smoother
onPositionChangeβ drags emit at the touch rate, transitions at the display's refresh rate, and a sheet behind a child sheet reports its live position.onWillDismissnow fires only when a drag-to-dismiss is committed. (#744, #756 by @lodev09) - The
autodetent now works with plugged scrollables β the sheet sizes to the scrollable's content height. (#743 by @lodev09) - New
headerOptionsprop with apositionoption β set to'absolute'to float the header over the content and exclude it from theautodetent height. (#747 by @lodev09) - The footer now absorbs the bottom safe-area inset as padding when
insetAdjustmentisautomaticβ no manual safe-area padding needed. Skipped while the keyboard is open. (#749, #750 by @lodev09)
π Bug fixes
- The keyboard-driven scroll inset now accounts for a floating footer's height β focused inputs no longer hide behind it. (#752 by @lodev09)
π₯ Breaking changes
- The footer now lays out relative by default β it takes up space below the content, is included in the
autodetent height (excluded frompeek), and stays behind the keyboard. SetfooterOptions.positionto'absolute'to restore the previous floating behavior (keyboardOffsetonly applies there). (#748, #754 by @lodev09) - Content now wraps its children's height by default instead of filling the sheet β like a regular view. Pass
flex: 1viastyleto fill. (#746 by @lodev09) - The container is now sized to the sheet's visible height per detent and tracks it in realtime while dragging, on all platforms. The
scrollableprop is removed β scrollables are auto-detected. Requires React Native 0.82+. (#735 by @lodev09)
π‘ Others
Full Changelog: v3.11.10...v4.0.0-beta.1