We built a React Native app to settle an old argument, left the instruments switched on, and recorded what happens when the JavaScript thread dies.
The argument is one most teams have quietly given up on: can a cross-platform app feel native, or does it always end up feeling like a website squeezed onto a phone? For most of the last decade the honest answer was the second one, and the reason never changed. Animation ran on the JavaScript thread, and the JavaScript thread is the one thread in your app guaranteed to be busy.
That constraint is gone. React Native's New Architecture removed the bridge, and Reanimated 4 lets you declare an animation once and hand it to the platform. Qubika Motion Lab is four real product flows — a wallet, a storefront, a player, a health tracker — built to make that difference visible rather than asserted. Every clip below is a screen recording of the app running, unedited except for trimming.
The control
Every claim here rests on one button. Holding it runs a busy loop on the JavaScript thread for as long as your thumb is down: no React renders, no state updates, no timers, no network callbacks. Your app having the worst moment of its life.
The summary it prints on release is the whole argument in two lines:
JS DEAD 5014 ms · HIT 5000 ms CAP
UI DREW 301 FRAMES · WORST 16.7 ms
301 frames in 5.014 seconds is 60.0 per second, with the worst single frame at one frame's budget. The counter React renders was frozen the entire time. Anything on screen that depended on JavaScript would have stopped dead.
That is the demo. Everything else is showing it somewhere you would actually ship.
Three places code runs
| Runtime | What runs there | What blocks it |
|---|---|---|
| JS / RN | React, business logic, network, state | everything you think of as "the app being busy" |
| UI | every animation and gesture in this app | nothing in the row above |
| Workers | the heart-rate analyser; the fluid solver | nothing in either row above |
The second row is Fabric and Bridgeless: there is no bridge to serialise over, so the UI thread holds its own copy of the values it animates. The third is Reanimated 4's createWorkletRuntime — a real JavaScript runtime on a real thread with its own event loop. Not an analogy to a Web Worker. An actual one.
A transition with no transition
Tap a tile and it does not open a page. It becomes the page.
The part that matters is what happens when you change your mind on the way back.
Every agency has a showreel. A showreel is a video, and you cannot stop a video halfway with your thumb and push it back.
Forty elements, one frame, no JavaScript
A product page. Tap a colour swatch.
This screen is the one that explains the architecture. There is no animation hook anywhere in it and no re-render per frame: a state change publishes once, and the platform runs the rest. It measures a 16.67 ms mean and a 16.67 ms maximum, and it holds those with the JavaScript thread blocked by the button from the first clip.
The same function, two threads
This is a synthetic photoplethysmogram — a heartbeat signal — band-passed through two biquad filters, peak-detected against a tracking envelope, then autocorrelated over a six-second window. About 370,000 multiply-accumulates every 40 milliseconds, deliberately written as the naive full-rate version rather than something clever.
It runs on a second worklet runtime, re-arming through that runtime's own setTimeout, so its cadence never touches the JavaScript thread. Results leave through shared values, which from a worker runtime write straight to the value's host with no JS hop.
The toggle, in full · src/verticals/health/ppg.ts
export function startPpg(lane: PpgLane): void {
const next = generation.getBlocking() + 1;
generation.setBlocking(next);
if (lane === 'worklet') {
scheduleOnRuntime(ppgRuntime(), runPpgLoop, next);
} else {
// The identical function, called on the RN runtime, where a
// worklet is just a function.
runPpgLoop(next);
}
}
That is the entire difference between the two halves of the clip. One branch posts runPpgLoop to a runtime made once with createWorkletRuntime({ name: 'qubika-ppg' }); the other calls it where it stands. The filters, the peak detector, the autocorrelation and the 40 ms re-arm are the same lines of code either way.
The part that cannot be a video
The app's finale is reached by tapping the wordmark on the home screen. Each letter is built by a process its own form demands — a hoop rolls in for Q, a drop pours into U, a plate stamps B, two blades strike through each other for K. The apparatus is a skeleton of that letter: two to four bones that end exactly where the letter's own strokes go, passing through a deliberately loose stage before they settle, because a bone that flies straight to its place reads as a slide however far it came.
Then the ink pours, and that part is solved rather than drawn. The surface is a height field of 76 columns, each a mass on a spring to the rest level, each exchanging momentum with its neighbours. Waves, reflection off both walls, interference and settling all fall out of that; none of it is authored. The only thing the solver is told is that the rest level is rising. A [0.25, 0.5, 0.25] kernel stands in for surface tension — its gain on the alternating mode is exactly zero, so needle-like short wavelengths flatten instantly while long waves travel untouched. Real physics rather than a hack to make it look right.
A height field is single-valued, so it can carry waves but can never break up. Everything that separates is a particle, spawning at five contact points with different characters. One number is drawn per droplet — how coarse it is — and both its size and its speed come off that number, anti-correlated, because when you break energy into pieces the small ones carry the most velocity. That is why fine mist reaches the top of the frame while fat blobs barely clear the surface.
It runs on a third worklet runtime and publishes one path string per tick. The JavaScript thread never sees any of it.
Before and after
None of this is new syntax for the sake of it. Each of the moments above replaces a pattern most React Native codebases still have in them, and in both cases the rewrite moves work off the JavaScript thread rather than making it faster.
Colour, across forty elements
The pattern this replaces
const [color, setColor] = useState(MOSS);
const t = useRef(new Animated.Value(0)).current;
useEffect(() => {
t.setValue(0);
Animated.timing(t, {
toValue: 1,
duration: 480,
useNativeDriver: false, // colour can never use it
}).start();
}, [color]);
// ...and one interpolation per rib, forty of them,
// stepped from JavaScript every frame
<Animated.View style={{ backgroundColor: t.interpolate({
inputRange: [0, 1], outputRange: [previous, color],
}) }} />
What it is now · src/verticals/ecom/ProductForm.tsx
<Animated.View
style={{
backgroundColor: ribColor(color, i / (ribs.length - 1)),
transitionProperty: ['backgroundColor'],
transitionDuration: [transition.duration],
transitionTimingFunction: transition.easing,
transitionDelay: [transition.delay],
}}
/>
One state publish installs forty transitions in one React commit, and after that commit the JavaScript thread has nothing left to do. That is the whole reason blocking it changes nothing. The old version cannot even reach the native driver, because backgroundColor is not a driveable property there — every one of those forty interpolations is stepped from JavaScript.
A transition you can change your mind about
The pattern this replaces
if (isAnimating) return; // the guard every hand-
setIsAnimating(true); // rolled version grows
Animated.spring(progress, {
toValue: 1,
useNativeDriver: true,
}).start(() => setIsAnimating(false));
What it is now · src/components/useExpandFromRect.ts
.onBegin(() => {
'worklet';
cancelAnimation(progress); // freeze the spring
springOwns.value = false;
dragAnchor.value = progress.value; // finger picks up there
})
cancelAnimation leaves a shared value at its current instantaneous value, so there is no snapshotting, no "is a transition in flight" flag to keep in sync and no JavaScript round trip. Direction is symmetric and unlimited: back collapses, forward re-commits, from any value, in any order, any number of times, because there is only ever one number being written. The guard in the old version is not a bug — it is the only correct thing to write when you cannot interrupt.
What the numbers are, and what they are not
Everything above was recorded on a 60 Hz iOS Simulator, and we would rather say so than have you find out. A 16.67 ms mean and a 16.67 ms maximum with nothing dropped is what the transaction settle, the filter reflow, the forty-element recolour, the pay-button morph and the palette wave each measure, and those numbers hold with the JavaScript thread fully blocked.
Two things we will not claim without hardware: particle counts above the shipped default, and any flick distance, since a 120 Hz device carries the same throw about 71% as far. The instruments are in the app, live and unsmoothed. You are welcome to hold the stress button yourself and try to make it drop a frame.
What it proves
Not "our animations are smooth". The claim is narrower and more useful than that.
Your application logic can be having its worst possible day, and the interface will not know.
Motion that is declared once and run natively, or driven by a value the finger owns, is not competing with your business logic for a thread. The usual trade-off between a product that feels responsive and a product that is busy stops existing. That is an architecture decision, taken early, that most teams discover they needed about eighteen months too late.
Qubika Motion Lab runs on Expo SDK 55, React Native 0.83.10, React 19.2 and react-native-reanimated 4.6.0, with Fabric, Bridgeless and Hermes.
FAQ
-
Can a React Native app feel native?
Yes, when animations and gestures run on the UI thread instead of the JavaScript thread. With the New Architecture and Reanimated 4, Qubika Motion Lab holds one frame per 16.67 ms even with the JavaScript thread fully blocked.
-
Why does the JavaScript thread matter for animation?
It is the thread that runs React, business logic, network and state, so it is the one guaranteed to be busy. Animations that depend on it stall whenever the app is doing real work.
-
What does Reanimated 4 change?
It lets you declare an animation once and hand it to the platform, including CSS-style transitions, and its createWorkletRuntime runs heavy work on a separate JavaScript runtime with its own thread and event loop.
-
What stack does Qubika Motion Lab run on?
Expo SDK 55, React Native 0.83.10, React 19.2 and react-native-reanimated 4.6.0, with Fabric, Bridgeless and Hermes.





