Skip to content

Idle in React Native ​

General rules: @toets/sdk docs, idle.md. What the adapter adds:

SourceTracking
NetworkXHR only: React Native's fetch runs on XHR, counting both would double up.
Animatedtiming/spring/decay from start() to the end callback (JS and native driver). Infinite Animated.loops are ignored.
LayoutAnimationCovered through its internal completion timer.
InteractionManagerHandles count as busy on React Native versions that still ship it.
NavigationnavigationIdleListeners() for React Navigation stacks (below).
tsx
<Stack.Navigator screenListeners={navigationIdleListeners()}>

Not visible to the SDK ​

Wrap these in markBusy() or accept polling: Reanimated worklets (UI thread), native image decoding, video startup, native modules doing async work, requestAnimationFrame loops.

TV trap ​

Focus animations (scale on focus, parallax) are usually Animated or Reanimated. Animated ones are tracked, so a press waits for the focus animation to finish; Reanimated ones are not, and screenshots taken right after a press may catch them mid-flight.