Skip to content

fix: build under React Native 0.89's RN_STRICT_API - #2025

Merged
mrousavy merged 1 commit into
margelo:mainfrom
jpudysz:fix/rn-strict-api-umbrellas
Nov 2, 2026
Merged

mrousavy merged 1 commit into
margelo:mainfrom
jpudysz:fix/rn-strict-api-umbrellas

Conversation

@jpudysz

@jpudysz jpudysz commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

React Native 0.89 lets apps turn on its C++ stable API guards with RN_STRICT_API=1 pod install or Gradle strictCxxApiEnabled=true, which define RN_STRICT_API for every pod and Android library.

Under it, a direct include of a private header or of a header that has a <React/...> umbrella is a hard #error, and Nitro hits both, so no app using Nitro can opt in today. This branch includes those headers through the umbrellas when they exist and keeps the current includes on older React Native.

I tested following scenarios:

  • RN <0.89 (no change)
  • build with static frameworks on IOS ✅
  • compiles correctly with RN_STRICT_API and Uniwind

@vercel

vercel Bot commented Nov 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
nitro-docs Skipped Skipped Nov 2, 2026 8:38am UTC

Request Review

@mrousavy mrousavy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool thanks!

@mrousavy
mrousavy merged commit 4f552b0 into margelo:main Nov 2, 2026
15 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 141b0e6b Deployed Nov 2, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants