From 41b009f989cbb339d2013dba2d1ed4ad6e9b7f95 Mon Sep 17 00:00:00 2001 From: hobostay <110hqc@gmail.com> Date: Tue, 3 Mar 2026 16:45:12 -0800 Subject: [PATCH] Fix typos: "boostrap" -> "bootstrap" and "informations" -> "information" (#55849) Summary: This PR fixes simple typos found in error messages: - **apple.js**: Fixed "boostrap" -> "bootstrap" in error messages (lines 67, 169) - **CppHelpers.js**: Fixed "informations" -> "information" in error messages (lines 75, 87, 101) Note: "information" is an uncountable noun in English and should not be pluralized. Changelog: [Internal] [Changed] - Pull Request resolved: https://github.com/facebook/react-native/pull/55849 Test Plan: These are typo fixes in error message strings. No code behavior changes. Reviewed By: cipolleschi Differential Revision: D94905006 Pulled By: cortinico fbshipit-source-id: a6a7185cf3aeb8739212a06115100ede097b0b4c --- packages/core-cli-utils/src/private/apple.js | 4 ++-- .../src/generators/components/CppHelpers.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core-cli-utils/src/private/apple.js b/packages/core-cli-utils/src/private/apple.js index 691a6147ba1..9bea66afbb1 100644 --- a/packages/core-cli-utils/src/private/apple.js +++ b/packages/core-cli-utils/src/private/apple.js @@ -64,7 +64,7 @@ function checkPodfileInSyncWithManifest( ); } } catch (e) { - throw new Error('Please run: yarn run boostrap ios: ' + e.message); + throw new Error('Please run: yarn run bootstrap ios: ' + e.message); } } @@ -166,7 +166,7 @@ export const tasks = { fs.constants.F_OK | fs.constants.R_OK, ); } catch (e) { - throw new Error('Please run: yarn run boostrap ios: ' + e.message); + throw new Error('Please run: yarn run bootstrap ios: ' + e.message); } } checkPodfileInSyncWithManifest( diff --git a/packages/react-native-codegen/src/generators/components/CppHelpers.js b/packages/react-native-codegen/src/generators/components/CppHelpers.js index d027eb2b153..e09977af105 100644 --- a/packages/react-native-codegen/src/generators/components/CppHelpers.js +++ b/packages/react-native-codegen/src/generators/components/CppHelpers.js @@ -72,7 +72,7 @@ function getCppArrayTypeForAnnotation( case 'object': if (!structParts) { throw new Error( - `Trying to generate the event emitter for an Array of ${typeElement.type} without informations to generate the generic type`, + `Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`, ); } return `std::vector<${generateEventStructName(structParts)}>`; @@ -84,7 +84,7 @@ function getCppArrayTypeForAnnotation( ) { if (!structParts) { throw new Error( - `Trying to generate the event emitter for an Array of ${typeElement.type} without informations to generate the generic type`, + `Trying to generate the event emitter for an Array of ${typeElement.type} without information to generate the generic type`, ); } return `std::vector<${generateEventStructName(structParts)}>`;