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 flag | Value / default | Applies to | Source |
|---|---|---|---|
damping | Start with documented default 120; tune against measured travel and interruption | Current physics spring | spring |
stiffness | Start with documented 900; not a universal sheet-specific optimum | Current physics spring | spring |
overshootClamping | Documented false; controls whether a spring can bounce over toValue | Current spring API | spring |
reduceMotion | Use ReduceMotion.System; Always for a reduced-motion fixture, never globally force Never | Spring/timing | reduced motion |
accessibilityRole | 'adjustable' on the focused drag handle; use button roles on explicit expand/collapse/close controls | Current React Native | accessibility |
accessibilityActions | [{ name: 'increment' }, { name: 'decrement' }]; implement onAccessibilityAction to choose adjacent snap positions | Current React Native | actions |
accessibilityValue | Textual description of a component's value; text overrides numeric range announcements | Current React Native | value contract |
cancelAnimation(position) | Call on the same shared value before reading the new drag origin; no animation means no-op | Current Reanimated API | cancel |
scheduleOnRN(fun, ...args) | Handoff only discrete state/events to a function defined on the RN runtime; not a per-frame animation driver | Current Worklets API | handoff |
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) | Cause | Fix | Source |
|---|---|---|---|
Tried to synchronously call a non-worklet function | A non-worklet, non-Host function is called on a different Runtime than it was defined on | Make UI-only math a worklet, or schedule the RN-owned function with scheduleOnRN; avoid heavy synchronous work in the frame callback | Worklets troubleshooting, handoff |
Cannot assign to read-only property 'reduceMotion' | mihaibulic2's reduced-motion crash report | Keep configuration immutable, isolate the reduced-motion path and choose a compatible maintained package set; don't copy the report's forced-remount workaround blindly | June 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