Skip to content

Release 4.0.0-beta

Pre-release
Pre-release

Choose a tag to compare

@lodev09 lodev09 released this 09 Aug 19:41
· 0 commits to main since this release
f8f1774

πŸŽ‰ 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. onWillDismiss now fires only when a drag-to-dismiss is committed. (#744, #756 by @lodev09)
  • The auto detent now works with plugged scrollables β€” the sheet sizes to the scrollable's content height. (#743 by @lodev09)
  • New headerOptions prop with a position option β€” set to 'absolute' to float the header over the content and exclude it from the auto detent height. (#747 by @lodev09)
  • The footer now absorbs the bottom safe-area inset as padding when insetAdjustment is automatic β€” 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 auto detent height (excluded from peek), and stays behind the keyboard. Set footerOptions.position to 'absolute' to restore the previous floating behavior (keyboardOffset only 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: 1 via style to 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 scrollable prop is removed β€” scrollables are auto-detected. Requires React Native 0.82+. (#735 by @lodev09)

πŸ’‘ Others

  • Upgrade the examples to Expo SDK 57 and React Native 0.86. (#755 by @lodev09)

Full Changelog: v3.11.10...v4.0.0-beta.1