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

GitHub release

UI

Minor changes

  • #344 Toast: useToastOffset follows 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() in onLayout, and lift the toasts with no re-render — while null on focus loss still slides them down and back up.

    Fixes:

    • A toast shown again with its id while leaving is no longer removed by the old exit, and onHide fires only for the exit that ran (remove takes an optional revision).
    • A disabled Toast.Action is 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.
    • hideAll over 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.
    • hideAll fades 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.
  • #343 Toast: useToastOffset (and setToastOffset outside 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, null slides back to 0, and the keyboard and chrome never add up. ToastViewport takes an offsetStore prop.

Patch changes

  • #342 Checkbox: a caller's accessibilityState no longer drops the checked or mixed state, a bare box inside a Field takes the field's label as its accessible name, and a labelled row is padded to the 44pt touch minimum (Checkbox.Group drops 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 Separator can no longer be unhidden from assistive technology:

    • SeparatorProps omits accessible, accessibilityElementsHidden and importantForAccessibility.
    • Caller props are spread before the hidden props, so a cast cannot override them.

Bottom Sheet

Patch changes

  • #346 BottomSheet: a Trigger (or ref.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 or Close left isOpen true until the settle, so the open was read as a no-op.

On this page