npm @lodev09/react-native-true-sheet 4.0.1
Release 4.0.1

4 hours ago

🐛 Bug fixes

  • iOS: present() on a sheet that isn't in a window, such as on a screen that just regained focus but isn't back on screen yet, now logs a warning instead of only rejecting. Present it once the screen is visible, or use initialDetentIndex. (#990 by @lodev09)
  • iOS: Closing an image picker presented over a sheet no longer leaves the sheet's content hidden from VoiceOver and UI tests. (#994 by @erickreutz)
  • iOS: Closing a sheet route, dismiss(), or TrueSheet.dismissAll() while the sheet's screen is covered by a pushed screen now dismisses the sheet, instead of it coming back unclosable when the screen reappears. (#993 by @wildseansy and @lodev09)
  • Android: A fling now settles the sheet at the next detent in its direction, like iOS and Compose Material3's sheet. A fling down from the middle of three detents, or from the top of two, used to settle back unless released past halfway. (#996 by @philiplindberg)
  • Changing detents while the sheet is presented now keeps it at the same detent: adding or removing a detent below it no longer moves the sheet. If its detent is removed, the sheet moves to the detent now at the same index. onDetentChange reports the new index or detent. (#999 by @lodev09)

💡 Others

  • Add an internal preview agent skill for recording the example app with argent and rendering README GIFs and docs videos framed to each device's real screen corners, and use it to refresh the README, docs, and blog previews. (#984, #985 by @lodev09)
  • Add the 4.0 release blog post and a Dismissing guide for dismissible, onDismissAttempt, and dismissThreshold, with new header, footer, and dismissing previews. The Resizing guide is now a Detents guide covering every detent type, including auto with scrollables, and the guides are sorted by title. The truesheet-usage skill now covers the draggable dim-tap caveat and confirming dismissals in the sheet navigator. (#986, #987 by @lodev09)
  • npx skills add lodev09/react-native-true-sheet now offers only the truesheet-usage skill; the internal changelog, e2e, and preview skills are hidden. (#989 by @lodev09)
  • Add a Changing Detents section to the Detents guide, and the truesheet-usage skill now covers changing detents while the sheet is presented. (#999 by @lodev09)

New Contributors

Full Changelog: v4.0.0...v4.0.1

Don't miss a new react-native-true-sheet release

NewReleases is sending notifications on new releases.