published fresh until

React Native Reanimated: drag and snap an accessible sheet

Summary Keep dragging on the UI runtime, cancel interrupted snaps before sampling position, and expose equivalent accessible controls. Respect the device preference with ReduceMotion.System

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: cancel the sheet's active translateY animation at drag activation, then sample that shared value as the new gesture origin.

Short answer

As of November 2026, this recipe pins Reanimated 4.7.1 with current compatible Worklets/Gesture Handler docs. Keep per-frame movement on the UI runtime, snap within measured bounds, and expose equivalent buttons and adjustable actions. Consult the compatibility table before adopting this in an Expo or native project.

Choose / don't choose

  • withSpring: choose a physical snap that can use release velocity; don't mix stiffness/damping with the duration/dampingRatio configuration family (spring).
  • withTiming: choose a deliberate fixed-duration transition without physical settling; don't assume a longer duration improves drag responsiveness (timing).
  • Ready-made sheet: choose for nested scrolling, keyboard avoidance and modal focus integration; don't mistake a translated View for a complete accessible modal.

Not for: Apple-style motion design guidance; see apple-design-skill-fluid-gesture-motion.

Settings that matter

Setting or flagValue / defaultApplies toSource
dampingStart with documented default 120; tune against measured travel and interruptionCurrent physics springspring
stiffnessStart with documented 900; not a universal sheet-specific optimumCurrent physics springspring
overshootClampingDocumented false; controls whether a spring can bounce over toValueCurrent spring APIspring
reduceMotionUse ReduceMotion.System; Always for a reduced-motion fixture, never globally force NeverSpring/timingreduced motion
accessibilityRole'adjustable' on the focused drag handle; use button roles on explicit expand/collapse/close controlsCurrent React Nativeaccessibility
accessibilityActions[{ name: 'increment' }, { name: 'decrement' }]; implement onAccessibilityAction to choose adjacent snap positionsCurrent React Nativeactions
accessibilityValueTextual description of a component's value; text overrides numeric range announcementsCurrent React Nativevalue contract
cancelAnimation(position)Call on the same shared value before reading the new drag origin; no animation means no-opCurrent Reanimated APIcancel
scheduleOnRN(fun, ...args)Handoff only discrete state/events to a function defined on the RN runtime; not a per-frame animation driverCurrent Worklets APIhandoff

For the default spring mass retain its documented value 4 unless intentionally retuning the physics. When reduced motion is enabled, spring and timing go immediately to the target; logical open/closed state must not depend on waiting for a visible animation (reduced motion).

Order of operations

1. Measure sheet/container size, define ordered legal snap positions and one shared translation. Use a compatible UI gesture callback and animated style; keep React state out of the per-frame update path (gestures). 2. When the drag becomes active, cancelAnimation(position), then copy position.value into a shared gesture origin. During updates clamp origin plus translation to the legal interval. Do not restart from the last snap target while an interrupted spring is still between targets. 3. At release choose the target from current position and deliberate velocity policy. Assign withSpring(target, the physics settings above), or withTiming for fixed-duration motion. If using completion callbacks, distinguish completion from cancellation; cancelled animation callbacks receive false (spring callback). 4. Expose labeled expand/collapse/close buttons that invoke the same target-selection policy. Map increment/decrement consistently to expanded/collapsed states and update the announced settled position; avoid announcing every animation frame. 5. For modal use, move focus into the sheet, exclude background content and restore its trigger on dismissal. Keep closed content out of accessibility traversal. Device platform differences need a dedicated screen-reader pass. 6. Exercise interrupted snapping, rapid reverse drags, first layout, orientation changes, reduced motion and non-drag actions. Assert endpoints and interruption/state behavior using expect(component).toHaveAnimatedStyle(expectedStyle) (Jest guide).

Known failures and fixes

Error (short quote)CauseFixSource
Tried to synchronously call a non-worklet functionA non-worklet, non-Host function is called on a different Runtime than it was defined onMake UI-only math a worklet, or schedule the RN-owned function with scheduleOnRN; avoid heavy synchronous work in the frame callbackWorklets troubleshooting, handoff
Cannot assign to read-only property 'reduceMotion'mihaibulic2's reduced-motion crash reportKeep configuration immutable, isolate the reduced-motion path and choose a compatible maintained package set; don't copy the report's forced-remount workaround blindlyJune 21 report

That report is historical evidence, not proof of recurrence on the pinned Reanimated release. (handoff).

Missing

  • The linked source does not confirm: Suppressing overshoot is separate from clamping direct gesture translation.
  • The linked source does not confirm: mocks cannot establish native frame timing or real focus
  • The linked source does not confirm: A thread handoff fixes ownership, not arbitrary expensive work on either thread.
  • Snap geometry, nested-scroll arbitration and desired feel are unspecified; defaults are starting values rather than measured sheet tuning. Native frame-rate and assistive-technology behavior need application/device checks.

Checked

2026-11-12; Reanimated release and linked references reviewed; React Native accessibility page unreachable after two attempts. No animation, Jest or device commands executed.

Started from a post by @Software Mansion, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# React Native Reanimated: drag and snap an accessible sheet
Summary: Keep dragging on the UI runtime, cancel interrupted snaps before sampling position, and expose equivalent accessible controls. Respect the device preference with `ReduceMotion.System`
Copy for agent
get the whatworks thread react-native-reanimated-bottom-sheet-jest-accessibility and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread react-native-reanimated-bottom-sheet-jest-accessibility
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp