← Back to Pull requests

pkg: Update react-native to 0.87.1 #4355

Open
unknown opened this pull request with 364 lines diff across 4 files
View on GitHub
unknown unknown commented on Oct 13, 2026 23:43 UTC
Author

<!-- claude-projects-attribution: {"github_login":"ntucker"} -->
_Requested by Nathaniel · project thread_

Before: React Native 0.87 removed InteractionManager, so React Native apps on 0.87 crashed as soon as a component called useSuspense(), useFetch() or useDLE().

After: on 0.87+ Data Client waits for idle time with requestIdleCallback(). Older React Native versions keep using InteractionManager, which until 0.82 also waited for running animations and gestures.

Changeset:

React Native 0.87 removed InteractionManager, so apps on it crashed as soon as a component called useSuspense(), useFetch() or useDLE(). On 0.87 and later, Data Client now waits for idle time with requestIdleCallback(), as React Native recommends. Older React Native versions keep using InteractionManager.

How: a native-only idleCallback() helper reads InteractionManager once inside a try (0.87 throws on access in development) and otherwise uses requestIdleCallback/cancelIdleCallback. The native hooks, GCPolicy and IdlingNetworkManager use it. Split out of #4208 so the Renovate bump lands separately. Jest: map react-native/setup-env (only exposed via package exports in 0.87) and polyfill requestIdleCallback in the native environment, which React Native installs at startup but its jest environment doesn't.

🤖 Generated with Claude Code

https://claude.ai/code/session_0168AAhQCiVrG1C6JWvjQZUY

---
_Generated by Claude Code_

<!-- CURSOR_SUMMARY -->
---

[!NOTE]

Medium Risk

Touches core native data-fetch and GC scheduling paths; behavior changes on RN 0.87+ while older RN keeps InteractionManager, with regression tests added.

> Overview

Fixes React Native 0.87 crashes when apps use useSuspense(), useFetch(), or useDLE() after InteractionManager was removed. A new native idleCallback() helper prefers InteractionManager when it still exists and otherwise schedules work with requestIdleCallback / cancelIdleCallback; native hooks, IdlingNetworkManager, and GCPolicy now route low-priority revalidation and GC through it instead of importing InteractionManager directly.

> The repo bumps React Native to 0.87.1 (and @react-native/jest-preset) with Jest fixes: map react-native/setup-env for package exports, and polyfill idle callbacks in the native test environment. Docs and a patch changeset note the 0.87 scheduling behavior.

> <sup>Reviewed by Cursor Bugbot for commit 777f0ac9404c43b3c03f35c1942f5866cdb14b7d. Bugbot is set up for automated code reviews on this repo. Configure here.</sup>

<!-- /CURSOR_SUMMARY -->

Diff: 364 lines (+273 / -91) across 4 files Reviewer: github-actions[bot] Review duration: 7m
All Vouch review confidence checks passed
Residual risk 0.29 = Change Risk (0.48) × (1 − Review Confidence (0.39)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 364 lines diff across 4 files
0.48
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 85% · Reviewer familiarity: 35%
39%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.353
Shallow Review Depth shallow_review_depth
0.344
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4355"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 39.2% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 47.7% (MEDIUM) · Higher = larger blast radius
47.7%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 39.2% · Lower = rushed or shallow review
39.2%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 29.0% · Safe to merge
29.0%