Slow and frozen frames on the React Native UI thread
Find the scrolling and animation jank that JavaScript timing can't see, for each app version
November 28, 2026
Jump to section
Vexo counts slow and frozen frames on the JavaScript thread and, in apps built with vexo-analytics 1.16.0 or later, on the native UI thread. The UI thread lays out and draws your views, so its slow and frozen frames show scrolling and animation jank that the Vexo SDK's JavaScript frame sampler can't see. The Vexo Performance page shows the two threads side by side, as Frame Health (JavaScript) and Frame Health (UI thread), and filters both by app version and operating system.
Why one thread isn't enough
A React Native app draws a frame with two threads. The JavaScript thread runs React and your code; the UI thread lays out and draws the native views. Jank on one doesn't show on the other. A long JavaScript task delays your React updates, while heavy layout, drawing, or a native module on the UI thread stutters scrolling and animations even when JavaScript is idle.
Before 1.16.0, Vexo timed only the JavaScript thread. A list that stuttered because of native drawing work could show a healthy JavaScript slow-frame rate, and nothing in the dashboard pointed at the UI thread. With both counts on one page, you can tell which thread to look at before you open a profiler.
How Vexo measures UI-thread frames
The Vexo SDK counts slow and frozen frames on the UI thread with each platform's own frame timing:
| Platform | How the Vexo SDK times frames | Slow frame | Frozen frame | Which frames count |
|---|---|---|---|---|
| Android 7.0 and later | The platform's FrameMetrics listener, which reports each frame's duration on a background thread | Over 16 ms | Over 700 ms | Only the frames the window draws |
| iOS | A CADisplayLink callback that does a small, constant amount of work per display refresh | Over 20 ms (at least one missed 60 Hz frame) | Over 700 ms | Every refresh while the app is on screen |
On Android, measuring adds no work to the UI thread; on iOS, it adds a small, constant amount per refresh. Because Android and iOS count frames differently, compare UI-thread rates within one platform: filter the dashboard by operating system.
The UI-thread counts share the JavaScript frames' windows: the Vexo SDK reports both for each screen visit and on an interval while a screen stays open, every 10 seconds unless you change it. The Vexo SDK sends the UI-thread count only when the UI thread drew frames in that window.
JavaScript slow frames now follow the refresh rate
1.16.0 also changes how the Vexo SDK counts slow frames on the JavaScript thread. A frame is now slow when it takes longer than 1.5 frame budgets at the screen's refresh rate: 25 ms at 60 Hz, 16.7 ms at 90 Hz, and 12.5 ms at 120 Hz. The budget is the median time between frames in each window, capped at 60 Hz, and frames are timed with the requestAnimationFrame timestamp. Frozen frames are still the ones over 700 ms.
Before 1.16.0, any JavaScript frame over 16 ms counted as slow. On-time frames at 60 Hz are 16 or 17 ms apart, so about 2 in 3 on-time frames counted as slow, and the slow-frame rate read high. The 1.10 launch post describes that earlier threshold. Vexo can't recount old data, so the dashboard keeps the two apart: the Frame Health (JavaScript) panel shows frames from 1.16.0 or later whenever the date range has any, and shows older frames as Frame Health (JavaScript, legacy) only when the range has nothing newer. Compare slow-frame rates within one of the two.
Example: find which thread a release made janky
Say you ship version 2.4 of your app with a redesigned feed that adds image thumbnails, and scrolling feels rough on your own Android test phone. On the Vexo Performance page, you filter to Android and compare app version 2.3 with 2.4.
In this example, Frame Health (JavaScript) barely moves between the two versions, while the slow-frame rate on Frame Health (UI thread) rises in 2.4. That points away from your React code and toward native work: decoding and drawing the thumbnails, or laying them out. You then filter to iOS and compare again, since the two platforms count frames differently. Because 2.4 changed only the feed, the version filter tells you where to start, and after you ship a fix in 2.5, the same comparison tells you whether the UI-thread rate came back down.
If the JavaScript rate rose instead, you'd look at long JavaScript tasks: heavy renders, large state updates, or work that runs on every scroll event.
Set up UI-thread frame health
UI-thread frame health needs:
- SDK:
vexo-analytics1.16.0 or later. - A new native build: the frame timing is native code, so run
pod installand rebuild, or make a new development or EAS build with Expo. An over-the-air JavaScript update onto an older build sends no UI-thread frames. - Expo: Development builds and EAS Build. Doesn't run in Expo Go.
- A production build: performance capture never runs in development builds, where a paused debugger would read as frozen frames.
npm install vexo-analytics@latest
cd ios && pod installThere's no code to add. Until your app sends UI-thread frames, the Frame Health (UI thread) panel says it has none in the date range.
What UI-thread frame health costs in events
An event is anything the Vexo SDK records: taps, screen changes, network requests, errors, custom events and, since SDK 1.10, the performance samples and console messages it sends by default. Every event counts toward your monthly total. To send fewer, turn an event type off or sample it for each app in App Settings → Mobile Tracking → Event Tracking. Each frame window now sends one more performance event for the UI thread, so frame health sends up to twice as many performance events as before.
To send fewer, use any of these:
- Sample or turn off performance events: in Event Tracking, set Performance to Sample or Off. Vexo drops those events before storing them, so they aren't billed, and it works without a new build. This setting covers every performance event, including app start and screen render times.
- Report frame health less often: under Mobile Tracking, set Report frame health every to a longer interval, from 5 to 60 seconds.
- Turn off performance capture in a build: pass
performance: falsewhen you initialize Vexo.
import { vexo } from 'vexo-analytics';
vexo('YOUR_API_KEY', { performance: false });Limits of Vexo frame health
- Android 7.0 and later only. Older Android versions don't report UI-thread frames.
- No per-screen breakdown. The Vexo SDK reports frames for each screen visit, but the Performance page charts frame health for the whole app, filtered by date range, app version, country, and operating system. To see which screens are slow to appear, use the page's per-screen render table.
- Compare within a platform. Android counts only drawn frames and iOS counts every refresh, so their rates aren't comparable with each other.
- Counts, not traces. Frame health tells you how often frames were slow or frozen, not which function was running. Use a profiler for that once you know which thread and version to look at.
For the thresholds and panels, see UI thread in the Vexo Performance docs.