diff --git a/packages/create-react-native-library/src/constants.ts b/packages/create-react-native-library/src/constants.ts index 713fd3f82..124459c7d 100644 --- a/packages/create-react-native-library/src/constants.ts +++ b/packages/create-react-native-library/src/constants.ts @@ -1,3 +1,3 @@ export const FALLBACK_BOB_VERSION = '0.40.13'; export const FALLBACK_NITRO_MODULES_VERSION = '0.28.1'; -export const SUPPORTED_REACT_NATIVE_VERSION = '0.81.0'; +export const SUPPORTED_REACT_NATIVE_VERSION = '0.81.1'; diff --git a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts index b0c7e2530..d5a113f6a 100644 --- a/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts +++ b/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts @@ -22,6 +22,7 @@ const FILES_TO_DELETE = [ const PACKAGES_TO_REMOVE = [ '@react-native/eslint-config', + '@react-native/new-app-screen', '@tsconfig/react-native', '@types/jest', '@types/react-test-renderer', @@ -36,9 +37,9 @@ const PACKAGES_TO_REMOVE = [ ]; const PACKAGES_TO_ADD_WEB = { - '@expo/metro-runtime': '~3.2.1', - 'react-dom': '18.2.0', - 'react-native-web': '~0.18.10', + '@expo/metro-runtime': '~5.0.4', + 'react-dom': '19.1.0', + 'react-native-web': '~0.21.1', }; export default async function generateExampleApp({ diff --git a/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml b/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml index 1b2440b89..7abd2f978 100644 --- a/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml +++ b/packages/create-react-native-library/templates/common/$.github/workflows/ci.yml @@ -125,7 +125,7 @@ jobs: runs-on: macos-latest env: - XCODE_VERSION: 16.2 + XCODE_VERSION: 16.3 TURBO_CACHE_DIR: .turbo/ios RCT_USE_RN_DEP: 1 RCT_USE_PREBUILT_RNCORE: 1 diff --git a/packages/create-react-native-library/templates/common/$package.json b/packages/create-react-native-library/templates/common/$package.json index a351f7776..395837e8d 100644 --- a/packages/create-react-native-library/templates/common/$package.json +++ b/packages/create-react-native-library/templates/common/$package.json @@ -72,40 +72,40 @@ "registry": "https://registry.npmjs.org/" }, "devDependencies": { - "@commitlint/config-conventional": "^19.6.0", - "@eslint/compat": "^1.2.7", - "@eslint/eslintrc": "^3.3.0", - "@eslint/js": "^9.22.0", - "@evilmartians/lefthook": "^1.5.0", + "@commitlint/config-conventional": "^19.8.1", + "@eslint/compat": "^1.3.2", + "@eslint/eslintrc": "^3.3.1", + "@eslint/js": "^9.35.0", + "@evilmartians/lefthook": "^1.12.3", <% if (example === 'vanilla' && (project.moduleConfig === 'turbo-modules' || project.viewConfig === 'fabric-view')) { -%> - "@react-native-community/cli": "15.0.0-alpha.2", + "@react-native-community/cli": "20.0.1", <% } -%> - "@react-native/eslint-config": "^0.78.0", - "@react-native/babel-preset": "0.78.2", - "@release-it/conventional-changelog": "^9.0.2", - "@types/jest": "^29.5.5", - "@types/react": "^19.0.12", - "commitlint": "^19.6.1", - "del-cli": "^5.1.0", - "eslint": "^9.22.0", - "eslint-config-prettier": "^10.1.1", - "eslint-plugin-prettier": "^5.2.3", + "@react-native/babel-preset": "0.81.1", + "@react-native/eslint-config": "^0.81.1", + "@release-it/conventional-changelog": "^10.0.1", + "@types/jest": "^29.5.14", + "@types/react": "^19.1.12", + "commitlint": "^19.8.1", + "del-cli": "^6.0.0", + "eslint": "^9.35.0", + "eslint-config-prettier": "^10.1.8", + "eslint-plugin-prettier": "^5.5.4", "jest": "^29.7.0", <% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%> "nitro-codegen": "^<%- versions.nitro %>", <% } -%> - "prettier": "^3.0.3", - "react": "19.0.0", - "react-native": "0.78.1", + "prettier": "^3.6.2", + "react": "19.1.0", + "react-native": "0.81.1", "react-native-builder-bob": "^<%- versions.bob %>", <% if (project.moduleConfig === 'nitro-modules' || project.viewConfig === 'nitro-view') { -%> "react-native-nitro-modules": "^<%- versions.nitro %>", <% } -%> - "release-it": "^17.10.0", + "release-it": "^19.0.4", <% if (example !== 'expo') { -%> - "turbo": "^1.10.7", + "turbo": "^2.5.6", <% } -%> - "typescript": "^5.8.3" + "typescript": "^5.9.2" }, "peerDependencies": { "react": "*", diff --git a/packages/create-react-native-library/templates/native-common-example/turbo.json b/packages/create-react-native-library/templates/native-common-example/turbo.json index 4822c1eb4..cc663f26a 100644 --- a/packages/create-react-native-library/templates/native-common-example/turbo.json +++ b/packages/create-react-native-library/templates/native-common-example/turbo.json @@ -1,9 +1,11 @@ { "$schema": "https://turbo.build/schema.json", - "pipeline": { + "globalDependencies": [".nvmrc", ".yarnrc.yml"], + "globalEnv": ["NODE_ENV"], + "tasks": { <% if (example !== 'expo') { -%> "build:android": { - "env": ["ORG_GRADLE_PROJECT_newArchEnabled"], + "env": ["ANDROID_HOME", "ORG_GRADLE_PROJECT_newArchEnabled"], "inputs": [ "package.json", "android", @@ -19,7 +21,11 @@ "outputs": [] }, "build:ios": { - "env": ["RCT_NEW_ARCH_ENABLED", "RCT_USE_RN_DEP", "RCT_USE_PREBUILT_RNCORE"], + "env": [ + "RCT_NEW_ARCH_ENABLED", + "RCT_USE_RN_DEP", + "RCT_USE_PREBUILT_RNCORE" + ], "inputs": [ "package.json", "*.podspec",