Release notes
What is shipping next and what the latest release changed, across every Delacour package.
The CLI, the component library and both engines share one version — the latest is 0.9.0. Each package's full history is on its own page:
- UI —
@delacour/react-native-ui - CLI —
delacour - Charts —
@delacour/react-native-charts - Bottom Sheet —
@delacour/react-native-bottom-sheet
How a change reaches npm, and how to try it before it is released: Release channels.
0.9.0
UI
Minor changes
-
#344 Toast:
useToastOffsetfollows a shared value. The hook now registers shared values of its own and follows a caller's shared value into them on the UI thread, so a tab bar can keep its measured height in a shared value, write it with.set()inonLayout, and lift the toasts with no re-render — whilenullon focus loss still slides them down and back up.Fixes:
- A toast shown again with its
idwhile leaving is no longer removed by the old exit, andonHidefires only for the exit that ran (removetakes an optionalrevision). - A disabled
Toast.Actionis no longer offered to a screen reader and cannot run. - The auto-hide clock waits out the entrance stagger, so a toast late in a batch — or updated while it waits — is shown for its full duration.
- A toast hidden while still queued leaves the store at once and calls its
onHide. - A VoiceOver double-tap on the card runs its action.
- A toast revived after a swipe comes back on screen instead of staying where the swipe left it.
- A pan the system cancels (the notification shade, an alert) puts the toast back instead of dismissing it.
- VoiceOver's escape gesture hides the toast.
hideAllover four or more toasts no longer mounts — and announces — the one that was queued.- On iOS a success, info or default toast's announcement waits for VoiceOver to finish speaking instead of cutting it off; a warning or failure still cuts in.
hideAllfades each card out at the depth it held, instead of sliding every card to the front, and a card hidden while it moves up keeps moving up.
- A toast shown again with its
-
#343 Toast:
useToastOffset(andsetToastOffsetoutside React) lifts each toast stack clear of app chrome — a tab bar, a bottom toolbar, a custom header — and follows it live on the UI thread. Pass a number to animate to or a Reanimated shared value you drive; the newest registration wins per edge,nullslides back to 0, and the keyboard and chrome never add up.ToastViewporttakes anoffsetStoreprop.
Patch changes
-
#342 Checkbox: a caller's
accessibilityStateno longer drops the checked or mixed state, a bare box inside aFieldtakes the field's label as its accessible name, and a labelled row is padded to the 44pt touch minimum (Checkbox.Groupdrops its gap so rows do not overlap).Checkbox.Group: two toggles in one handler keep both values, a change a controlled parent rejects is not proposed again on the next tap, and a grouped checkbox now calls its own
onCheckedChange. -
#340 Input.Group: a block keeps its state and focus when another block is added after it, instead of remounting when it stops being the outermost one.
-
#339 Select: an open sheet's options lock when the select turns disabled or read-only, so a press no longer changes the value or calls
onValueChange. -
#341
Separatorcan no longer be unhidden from assistive technology:SeparatorPropsomitsaccessible,accessibilityElementsHiddenandimportantForAccessibility.- Caller props are spread before the hidden props, so a cast cannot override them.
Bottom Sheet
Patch changes
- #346 BottomSheet: a
Trigger(orref.open()) pressed while the sheet animates closed is no longer dropped. The sheet turns round and animates back open at once, instead of waiting for the close to settle. A swipe, an overlay press orCloseleftisOpentrue until the settle, so the open was read as a no-op.