Motion
ARCUI's UI-thread-first motion model, Reduced Motion behavior, cancellation, and animation token hierarchy.
ARCUI treats animation as visual state, not semantic application state.
React state -> meaning, ownership, structure
SharedValues -> continuous visual progress
UI thread -> frame-level visual work where practicalDo not animate through React state
React state should not update once per gesture or animation frame merely to move pixels.
ARCUI uses Reanimated for work such as:
- dark/light color interpolation;
- press transforms/highlights;
- Slider gesture position and thumb feedback;
- ProgressBar visual progress;
- Spinner and Skeleton motion;
- Modal gestures and dismissal motion;
- FluidView layout/presence transitions;
- Toast/Dialog/Dropdown entry and exit motion.
Semantic values remain React-owned.
Cancellation and reversal
When a new visual transition replaces an active one, stale motion should not continue fighting the new target.
ARCUI cancels active Reanimated transitions where overlapping motion could remain and supports reversal where the interaction model requires it.
For custom motion around ARCUI, prefer the same behavior over stacking unrelated animations on one visual dimension.
Reduced Motion is part of the contract
ARCUI reads the system Reduced Motion preference and disables or simplifies non-essential motion while preserving semantic behavior.
Examples:
- theme state still changes even if interpolation becomes immediate;
- FluidView content still mounts/unmounts even if presence motion is removed;
- Slider still updates values even if visual emphasis motion is reduced.
Application-owned animation composed around ARCUI should follow the same rule.
Animation token hierarchy
General timing lives in tokens.animations.
Specialized behavior lives in component namespaces and falls back to global values where that component contract allows it:
animations
├─ duration / easing
├─ enterDuration / enterEasing
└─ exitDuration / exitEasing
component namespaces
├─ accordionAnimations
├─ infoboxAnimations
├─ fluidViewAnimations
├─ headerAnimations
├─ modalAnimations
├─ selectAnimations
├─ tabsAnimations
├─ dropdownAnimations
├─ progressBarAnimations
├─ checkboxAnimations
├─ radioAnimations
├─ toggleAnimations
├─ toastAnimations
├─ skeletonAnimations
├─ sliderAnimations
└─ spinnerLoaderAnimationsOther shared motion configuration includes:
pressAnimationfor press feedback defaults;springConfigfor gesture-based springs such as Modal/Slider snapping;enteringExitingfor ARCUI default presence transitions;dialogAnimationsfor directional Dialog presentation.
Press feedback
Pressable ARCUI controls use the public TPressAnimation model:
type TPressAnimation =
| "scaleUp"
| "scaleDown"
| "highlight"
| "none";The product-wide default comes from tokens.pressAnimation, while components may expose local overrides where appropriate.
Presence and layout motion
FluidView is ARCUI's explicit layout-motion wrapper:
<FluidView entering exiting>
{visible ? <Content /> : null}
</FluidView>visible remains React state. FluidView owns only the wrapper's visual layout/presence transition.
SharedValue rule
ARCUI consistently uses .value in:
- worklets;
- animated hooks;
- effects;
- gestures/event handlers;
- lifecycle callbacks.
Do not read or write SharedValue .value during ordinary React render.
Related components
Press feedback and loading/state transitions.
Opt-in layout and presence transitions.
Gesture-driven UI-thread movement with semantic callbacks.
Gesture dismissal and provider-hosted sheet motion.
UI-thread determinate progress rendering.
Continuous shimmer with Reduced Motion behavior.