Releases: arekkubaczkowski/react-native-bottom-sheet-stack
Releases · arekkubaczkowski/react-native-bottom-sheet-stack
Release 1.18.0
Features
- swmansion: emit
onIndexChange(openIndex)fromexpand()on programmatic open. The nativeonIndexChangeonly fires for user-driven snaps andonSettleonly reports the end of the animation, so — since the manager owns the index, not the consumer — there was previously no way to react to the start of a programmatic open (e.g. to fire a haptic). User-driven snaps are unchanged. (#31)
Full Changelog: v1.17.1...v1.18.0
Release 1.17.1
Bug Fixes
- adapters: recover gorhom from a dropped
onChangethat left a sheet stuck in'opening'and blocked all subsequent opens. Tapping switch then immediately dismissing before the open finished re-revealed the sheet below and calledexpand()mid-close; gorhom swallowed thatexpand()and never emittedonChange, so the sheet stayed'opening'forever and permanently tripped thehasOpeningInGroupguard. The adapter now also reports opened from the animated index viauseAnimatedReactionas an additive backstop (idempotent; the existingonChangepath is untouched). Also drops the now-dead swmansion settle guard, sinceonSettleis optimistic and a spurious pre-opensettle(0)can no longer fire. (#30)
Full Changelog: v1.17.0...v1.17.1
Release 1.17.0
Features
- swmansion: apply
keyboardBehavior="inset"to every sheet size, not just content-sized sheets. Drops the!shouldFillgate so fixed-height sheets (numericdetents/fullHeight) shrink their content area by the keyboard height — a scrollable child then scrolls within the remaining space above the keyboard — while content-sized sheets keep their existing re-measure behaviour. The sheet now owns keyboard avoidance for all sizes, so consumers no longer hand-roll it (which previously double-lifted content on content-sized sheets). Adds a dedicated Keyboard avoidance docs section. (#29)
Full Changelog: v1.16.0...v1.17.0
Release 1.16.0
Features
- swmansion: drive the manager backdrop from the native fractional detent
indexinstead of reconstructing it in JS fromonPositionChange. Bumps@swmansion/react-native-bottom-sheetto0.15.0-next.1, which reports a per-frame fractionalindexononPositionChange(the continuous counterpart ofonIndexChange). Removes the JS peak-position / open-height tracking, thehasOpenedshared value, and the timed open/close fade — open, close, and drag-to-dismiss now fade straight from the native per-frame index on the UI thread, including the first open of a'content'-sized sheet (which previously snapped to fully opaque). (#28)
Full Changelog: v1.15.0...v1.16.0
Release 1.15.0
Features
- swmansion: add
cornerRadiusprop — applied to the default surface and used to clip the content to those rounded corners, so opaque content flush to the top (e.g. a non-transparent header, or a sheet whose grab handle is hidden viapreventDismiss) can no longer square off the corners. Defaults to the built-in surface radius when using the default surface; with a customsurface, content clipping is opt-in via this prop (the adapter can't infer a custom surface's radius). Pass0for a flat top. (#26)
Full Changelog: v1.14.0...v1.15.0
Release 1.14.0
What's Changed
- feat(swmansion): opt-in handle, fullHeight, fillContent & keyboardBehavior props by @arekkubaczkowski in #25
Full Changelog: v1.13.0...v1.14.0
Release 1.13.0
What's Changed
- feat(swmansion): block dismiss gesture natively + expose preventDismiss by @arekkubaczkowski in #24
Full Changelog: v1.12.0...v1.13.0