From b65dbf68d0b3172c36a499a07a0cbf98e8635acc Mon Sep 17 00:00:00 2001 From: Nick Gerleman Date: Tue, 1 Aug 2023 15:57:43 -0700 Subject: [PATCH] Bump template @types/react to 18.2.6 (#38713) Summary: Match the `react` dependency minor of `18.2` and specify a min version of `18.2.6`, which is the first version which includes `React.JSX` namespace. This enables usage of `React.JSX.Element`, now default as part of the template. Note that `18.2.6` satisfied the previous semver, so new templates are already pulling in a version even newer than this, but updating projects may not do this automatically. Changelog: [General][Fixed] - Bump template types/react to 18.2.6 Pull Request resolved: https://github.com/facebook/react-native/pull/38713 Test Plan: CircleCI will build and typecheck a new template app. Reviewed By: yungsters Differential Revision: D47943524 Pulled By: NickGerleman fbshipit-source-id: 49e587f8c2ebfce9fd1f00793a858d72ac0aa09e --- packages/react-native/template/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/template/package.json b/packages/react-native/template/package.json index 0059ea5890c..85c2873d320 100644 --- a/packages/react-native/template/package.json +++ b/packages/react-native/template/package.json @@ -21,7 +21,7 @@ "@react-native/eslint-config": "^0.73.0", "@react-native/metro-config": "^0.73.0", "@react-native/typescript-config": "^0.73.0", - "@types/react": "^18.0.24", + "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.2.1", "eslint": "^8.19.0",