Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Align Microsoft.ReactNative.Cxx includes with core public headers

Abierto
#16,522 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, react-native
Área
build-system

Línea de trabajo

Read Microsoft.ReactNative.Cxx.vcxitems alongside the vnext/include/React forwarders and the core <React/*.h> umbrellas, using PR #16513 as the reference for the intended public include shape. Inventory the header closure each umbrella needs, then compare it with the Cxx include path and ClInclude entries. Done means ReactCommon is no longer on the public include path, the NuGet ships only that closure, and exclusions such as Dynamic.h (#11644) remain.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Integration Follow-up Needs: Triage :mag:

Problem Description

Core now treats <React/*.h> as the public C++ entry point and guards direct includes of fine-grained headers. vnext/include/React already forwards those umbrellas, but Microsoft.ReactNative.Cxx.vcxitems still adds all of ReactCommon to the public include path and lists private headers as package includes. Public headers therefore pull in private headers, and the NuGet does not ship the include/React forwarders.

Follow-up from https://github.com/microsoft/react-native-windows/pull/16513. MS.RN.Cxx should match core's public includes.

Scope:

  1. Inventory the header closure required by each core <React/*.h> umbrella.
  2. Compare that closure with the Cxx include path and ClInclude entries.
  3. Stop exposing ReactCommon on the public include path.
  4. Ship only that closure in the Microsoft.ReactNative.Cxx NuGet.
  5. Keep the existing Windows exclusions, including Dynamic.h (#11644).
  6. Do not move headers out of the npm package until that layout is agreed.

Removing ReactCommon from the include path before the closure is packaged would break in-tree and external native code.

Integration PR: https://github.com/microsoft/react-native-windows/pull/16513
Nightly: 0.89.0-nightly-20261002-cd2de187e

Lenguaje dominante
C++
Estrellas
17.4k
Forks
1.2k
Merge medio
1 d 20 h
PR fusionados (30 d)
37

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de microsoft/react-native-windows

Todos los issues de microsoft/react-native-windows

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.