From aef7248dd60eac6e2c17022f9a263e24518b684b Mon Sep 17 00:00:00 2001 From: Benito Mota Date: Sun, 15 Nov 2026 21:49:44 -0600 Subject: [PATCH 1/2] XR and WindowManager import their own headers, so they build with the prebuilt React core --- .../react-native/Libraries/WindowManager/RCTWindowManager.mm | 4 +++- .../Libraries/WindowManager/React-RCTWindowManager.podspec | 2 +- packages/react-native/Libraries/XR/RCTXRModule.mm | 4 +++- packages/react-native/Libraries/XR/React-RCTXR.podspec | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/packages/react-native/Libraries/WindowManager/RCTWindowManager.mm b/packages/react-native/Libraries/WindowManager/RCTWindowManager.mm index 3700bceba2..e8a7039707 100644 --- a/packages/react-native/Libraries/WindowManager/RCTWindowManager.mm +++ b/packages/react-native/Libraries/WindowManager/RCTWindowManager.mm @@ -1,4 +1,6 @@ -#import +// Its own header, not : with the prebuilt React core (RCT_USE_PREBUILT_RNCORE=1) the +// React framework is upstream's and does not carry the visionOS headers, so fails. +#import "RCTWindowManager.h" #import diff --git a/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec b/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec index a2bf54da7f..47b7f69377 100644 --- a/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec +++ b/packages/react-native/Libraries/WindowManager/React-RCTWindowManager.podspec @@ -26,7 +26,7 @@ Pod::Spec.new do |s| s.platforms = min_supported_versions s.compiler_flags = '-Wno-nullability-completeness' s.source = source - s.source_files = "*.{m,mm,swift}" + s.source_files = "*.{h,m,mm,swift}" s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" s.header_dir = "RCTWindowManager" s.pod_target_xcconfig = { diff --git a/packages/react-native/Libraries/XR/RCTXRModule.mm b/packages/react-native/Libraries/XR/RCTXRModule.mm index f0c600b3a0..0c37bea8e0 100644 --- a/packages/react-native/Libraries/XR/RCTXRModule.mm +++ b/packages/react-native/Libraries/XR/RCTXRModule.mm @@ -1,4 +1,6 @@ -#import +// Its own header, not : with the prebuilt React core (RCT_USE_PREBUILT_RNCORE=1) the +// React framework is upstream's and does not carry the visionOS headers, so fails. +#import "RCTXRModule.h" #import diff --git a/packages/react-native/Libraries/XR/React-RCTXR.podspec b/packages/react-native/Libraries/XR/React-RCTXR.podspec index af6fea2b29..a464c5868f 100644 --- a/packages/react-native/Libraries/XR/React-RCTXR.podspec +++ b/packages/react-native/Libraries/XR/React-RCTXR.podspec @@ -26,7 +26,7 @@ Pod::Spec.new do |s| s.platforms = min_supported_versions s.compiler_flags = '-Wno-nullability-completeness' s.source = source - s.source_files = "*.{m,mm,swift}" + s.source_files = "*.{h,m,mm,swift}" s.preserve_paths = "package.json", "LICENSE", "LICENSE-docs" s.header_dir = "RCTXR" s.pod_target_xcconfig = { From 5dbff02ad4781fe3e6f22043c39bdf8929ae3cb1 Mon Sep 17 00:00:00 2001 From: Ernesto Mendoza Date: Sun, 15 Nov 2026 21:49:45 -0600 Subject: [PATCH 2/2] 0.88.2 --- CHANGELOG.md | 13 +++++++++++++ .../Libraries/Core/ReactNativeVersion.js | 2 +- packages/react-native/React/Base/RCTVersion.m | 2 +- .../react-native/ReactAndroid/gradle.properties | 2 +- .../react/modules/systeminfo/ReactNativeVersion.kt | 2 +- .../ReactCommon/cxxreact/ReactNativeVersion.h | 4 ++-- packages/react-native/package.json | 2 +- .../generate-artifacts-executor-test.js.snap | 8 ++++---- 8 files changed, 24 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36fcaced69..08454b2be1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## v0.88.2 — unreleased + +### Fixed + +- **iOS builds with the prebuilt React core compile again.** An app that installs this package *as* + `react-native` and builds iOS with the prebuilt React core, which Expo SDK 58's Podfile turns on by + default (`RCT_USE_PREBUILT_RNCORE=1`), failed in `RCTWindowManager.mm`: `'React/RCTWindowManager.h' + file not found`. The prebuilt `React.xcframework` is upstream's and carries none of the visionOS + headers, while `React-RCTWindowManager` and `React-RCTXR` are installed on every platform. Both + modules now import their own header (`"RCTWindowManager.h"`, `"RCTXRModule.h"`), which their pods + ship, so they compile with the prebuilt core and from source alike. Installing the fork alongside + `react-native`, which the setup guide recommends, was not affected. + ## v0.88.1 — 15 November 2026 Moves the visionOS platform onto React Native 0.88.1, the version Expo SDK 58 uses. The fork is rebuilt on diff --git a/packages/react-native/Libraries/Core/ReactNativeVersion.js b/packages/react-native/Libraries/Core/ReactNativeVersion.js index 22d3a84a93..7a0d544fdc 100644 --- a/packages/react-native/Libraries/Core/ReactNativeVersion.js +++ b/packages/react-native/Libraries/Core/ReactNativeVersion.js @@ -28,7 +28,7 @@ export default class ReactNativeVersion { static major: number = 0; static minor: number = 88; - static patch: number = 1; + static patch: number = 2; static prerelease: string | null = null; static getVersionString(): string { diff --git a/packages/react-native/React/Base/RCTVersion.m b/packages/react-native/React/Base/RCTVersion.m index c119cec78a..666c9d9035 100644 --- a/packages/react-native/React/Base/RCTVersion.m +++ b/packages/react-native/React/Base/RCTVersion.m @@ -23,7 +23,7 @@ __rnVersion = @{ RCTVersionMajor: @(0), RCTVersionMinor: @(88), - RCTVersionPatch: @(1), + RCTVersionPatch: @(2), RCTVersionPrerelease: [NSNull null], }; }); diff --git a/packages/react-native/ReactAndroid/gradle.properties b/packages/react-native/ReactAndroid/gradle.properties index 4329857a31..d134104818 100644 --- a/packages/react-native/ReactAndroid/gradle.properties +++ b/packages/react-native/ReactAndroid/gradle.properties @@ -1,4 +1,4 @@ -VERSION_NAME=0.88.1 +VERSION_NAME=0.88.2 react.internal.publishingGroup=com.facebook.react react.internal.hermesPublishingGroup=com.facebook.hermes diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt index 771b8efebf..0b31f096a3 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt @@ -14,7 +14,7 @@ public object ReactNativeVersion { public val VERSION: Map = mapOf( "major" to 0, "minor" to 88, - "patch" to 1, + "patch" to 2, "prerelease" to null ) } diff --git a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h index 0f6c2eecfe..cc9ea21b8c 100644 --- a/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h +++ b/packages/react-native/ReactCommon/cxxreact/ReactNativeVersion.h @@ -14,14 +14,14 @@ #define REACT_NATIVE_VERSION_MAJOR 0 #define REACT_NATIVE_VERSION_MINOR 88 -#define REACT_NATIVE_VERSION_PATCH 1 +#define REACT_NATIVE_VERSION_PATCH 2 namespace facebook::react { struct ReactNativeVersionType { int32_t Major = 0; int32_t Minor = 88; - int32_t Patch = 1; + int32_t Patch = 2; std::string_view Prerelease = ""; }; diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 7066a66ae0..e1a0cf693e 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -1,6 +1,6 @@ { "name": "@reactvision/react-native-visionos", - "version": "0.88.1", + "version": "0.88.2", "publishConfig": { "access": "public" }, diff --git a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap index cfe826a505..ab18684d2b 100644 --- a/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap +++ b/packages/react-native/scripts/codegen/__tests__/__snapshots__/generate-artifacts-executor-test.js.snap @@ -79,7 +79,7 @@ exports[`execute test-app "ReactAppDependencyProvider/ReactAppDependencyProvider # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.1\\" +version = \\"0.88.2\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -399,7 +399,7 @@ exports[`execute test-app "ReactCodegen/ReactCodegen.podspec" should match snaps # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.1\\" +version = \\"0.88.2\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -590,7 +590,7 @@ exports[`execute test-app-legacy "ReactAppDependencyProvider/ReactAppDependencyP # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.1\\" +version = \\"0.88.2\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in. @@ -882,7 +882,7 @@ exports[`execute test-app-legacy "ReactCodegen/ReactCodegen.podspec" should matc # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. -version = \\"0.88.1\\" +version = \\"0.88.2\\" source = { :git => 'https://github.com/facebook/react-native.git' } if version == '1000.0.0' # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.