From 9c9c1f33a47db47d3053a4377df69d6fc4e493a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Tue, 10 Feb 2026 12:58:54 +0100 Subject: [PATCH] Bump versions for MacOS test app --- scripts/init-macos-test-app.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/scripts/init-macos-test-app.ts b/scripts/init-macos-test-app.ts index 1f80b1a7..d5d647eb 100644 --- a/scripts/init-macos-test-app.ts +++ b/scripts/init-macos-test-app.ts @@ -4,7 +4,10 @@ import fs from "node:fs"; import path from "node:path"; import { readPackage } from "read-pkg"; -const REACT_NATIVE_VERSION = "0.79.6"; +const REACT_NATIVE_VERSION = "0.81.5"; +const REACT_NATIVE_MACOS_VERSION = "0.81.1"; +const REACT_VERSION = "^19.1.4"; + const ROOT_PATH = path.join(import.meta.dirname, ".."); const APP_PATH = path.join(ROOT_PATH, "apps", "macos-test-app"); const OTHER_APP_PATH = path.join(ROOT_PATH, "apps", "test-app"); @@ -87,6 +90,7 @@ async function patchPackageJson() { packageJson.dependencies = { ...packageJson.dependencies, + react: REACT_VERSION, "react-native-macos-init": "^2.1.3", "@react-native-node-api/node-addon-examples": path.relative( APP_PATH, @@ -131,9 +135,13 @@ function installDependencies() { function initializeReactNativeMacOSTemplate() { console.log("Initializing react-native-macos template"); - exec("npx", ["react-native-macos-init"], { - cwd: APP_PATH, - }); + exec( + "npx", + ["react-native-macos-init", "--version", REACT_NATIVE_MACOS_VERSION], + { + cwd: APP_PATH, + }, + ); } async function patchPodfile() {