🐛 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 useinitialDetentIndex. (#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(), orTrueSheet.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
detentswhile 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.onDetentChangereports the new index or detent. (#999 by @lodev09)
💡 Others
- Add an internal
previewagent 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, anddismissThreshold, with new header, footer, and dismissing previews. The Resizing guide is now a Detents guide covering every detent type, includingautowith scrollables, and the guides are sorted by title. Thetruesheet-usageskill now covers thedraggabledim-tap caveat and confirming dismissals in the sheet navigator. (#986, #987 by @lodev09) npx skills add lodev09/react-native-true-sheetnow offers only thetruesheet-usageskill; the internalchangelog,e2e, andpreviewskills are hidden. (#989 by @lodev09)- Add a Changing Detents section to the Detents guide, and the
truesheet-usageskill now covers changingdetentswhile the sheet is presented. (#999 by @lodev09)
New Contributors
- @philiplindberg made their first contribution in #996
- @wildseansy made their first contribution in #993
Full Changelog: v4.0.0...v4.0.1