Fixing typos (#55047)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55047

Changelog: [Internal]

Fixed typos found through comprehensive recursive scan of the react-native-github directory.

**Fixed typos:**
1. "accomodate" → "accommodate" in CHANGELOG-0.6x.md
2. "occured" → "occurred" in LaunchUtils.js
3. "compatability" → "compatibility" in 7 Renderer files
4. "recieved" → "received" in PointerEvent test files (6 instances)
5. "seperated" → "separated" in ImageExample.js

**Total: 16 typo instances fixed across 10 files**

All typos were found by scanning ~3000 text files (excluding dist/third-party/node_modules) using pattern matching for common misspellings.

Reviewed By: javache

Differential Revision: D89799362

fbshipit-source-id: 73e9123dc0bae3c1ce8e374f4752404ab7345347
This commit is contained in:
Pierre Moulon authored and meta-codesync[bot] committed 2026-01-06 03:23:09 -08:00
1 parent 36a0d9ef63
commit 6587beab88
16 files changed
+38 -34

No files matched your search

@@ -45,8 +45,8 @@ function _generateChangelog(previousVersion, version, token) {
run('git checkout main');
run('git fetch');
run('git pull origin main');
const generateChangelogComand = `npx @rnx-kit/rn-changelog-generator --base v${previousVersion} --compare v${version} --repo . --changelog ./CHANGELOG.md --token ${token}`;
run(generateChangelogComand);
const generateChangelogCommand = `npx @rnx-kit/rn-changelog-generator --base v${previousVersion} --compare v${version} --repo . --changelog ./CHANGELOG.md --token ${token}`;
run(generateChangelogCommand);
}
function _pushCommit(version) {
+1 -1
View File
@@ -606,7 +606,7 @@ This file contains all changelogs for releases in the 0.60-0.69 range. Please ch
- Fix crash on ReactEditText with AppCompat 1.4.0 ([e21f8ec349](https://github.com/facebook/react-native/commit/e21f8ec34984551f87a306672160cc88e67e4793) by [@cortinico](https://github.com/cortinico))
- Do not .lowerCase the library name when codegenerating TurboModule Specs ([28aeb7b865](https://github.com/facebook/react-native/commit/28aeb7b8659b38ee3a27fae213c4d0800f4d7e31) by [@cortinico](https://github.com/cortinico))
- Enable hitSlop to be set using a single number. ([a96bdb7154](https://github.com/facebook/react-native/commit/a96bdb7154b0d8c7f43977d8a583e8d2cbdcb795) by [@javache](https://github.com/javache))
- Updated TextInput prop types to accomodate for new autoComplete values ([9eb0881c8f](https://github.com/facebook/react-native/commit/9eb0881c8fecd0e974b1cb9f479bad3075854340) by [@TheWirv](https://github.com/TheWirv))
- Updated TextInput prop types to accommodate for new autoComplete values ([9eb0881c8f](https://github.com/facebook/react-native/commit/9eb0881c8fecd0e974b1cb9f479bad3075854340) by [@TheWirv](https://github.com/TheWirv))
- Don't reconstruct app components https://github.com/facebook/react-native/issues/25040 ([fc962c9b6c](https://github.com/facebook/react-native/commit/fc962c9b6c4bf9f88decbe014ab9a9d5c1cf51bc) by [@Somena1](https://github.com/Somena1))
- Do NOT skip the first child view in the scroll view group when measuring the lower and upper bounds for snapping. ([61e1b6f86c](https://github.com/facebook/react-native/commit/61e1b6f86cf98d8a74eeb9353143fe0c624fe6e6) by [@ryancat](https://github.com/ryancat))
- Fix crash when a Switch is initialised with both backgroundColor and thumbColor. ([456cf3db14](https://github.com/facebook/react-native/commit/456cf3db14c443c483d63aa97c88b45ffd25799b) by [@smarki](https://github.com/smarki))
@@ -3,7 +3,7 @@
exports[`prepareDebuggerShellFromDotSlashFile fails with the expected error message for a missing dotslash file 1`] = `
Object {
"code": "unexpected_error",
"humanReadableMessage": "An unexpected error occured while installing the latest version of React Native DevTools. Using a fallback version instead.",
"humanReadableMessage": "An unexpected error occurred while installing the latest version of React Native DevTools. Using a fallback version instead.",
"verboseInfo": Any<String>,
}
`;
@@ -89,7 +89,7 @@ async function prepareDebuggerShellFromDotSlashFile(
return {
code: 'unexpected_error',
humanReadableMessage:
'An unexpected error occured while installing the latest version of React Native DevTools. ' +
'An unexpected error occurred while installing the latest version of React Native DevTools. ' +
'Using a fallback version instead.',
verboseInfo: stderr,
};
@@ -74,7 +74,7 @@ test('moving box by 100 points', () => {
Fantom.unstable_produceFramesForDuration(500);
// Animation is completed now. C++ Animated will commit the final position to the shadow tree.
// TODO(T232605345): this shouldn't be neccessary once we fix Android's race condition.
// TODO(T232605345): this shouldn't be necessary once we fix Android's race condition.
Fantom.runWorkLoop();
expect(viewElement.getBoundingClientRect().x).toBe(100);
});
@@ -251,7 +251,7 @@ test('animated opacity', () => {
0,
);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_opacityAnimation?.stop();
});
@@ -559,7 +559,7 @@ test('animate layout props', () => {
Fantom.unstable_produceFramesForDuration(10);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_heightAnimation?.stop();
});
@@ -701,7 +701,7 @@ describe('Animated', () => {
expect(cb).toBeCalledWith({finished: true});
});
it('parellelizes well', () => {
it('parallelizes well', () => {
const anim1 = {start: jest.fn()};
const anim2 = {start: jest.fn()};
const cb = jest.fn();
@@ -65,7 +65,7 @@ test('animated opacity', () => {
0,
);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_opacityAnimation?.stop();
});
@@ -132,7 +132,7 @@ test('animate layout props', () => {
Fantom.unstable_produceFramesForDuration(100);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_heightAnimation?.stop();
});
@@ -199,7 +199,7 @@ test('animate layout props and rerender', () => {
Fantom.unstable_produceFramesForDuration(500);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_heightAnimation?.stop();
});
@@ -290,7 +290,7 @@ test('animate non-layout props and rerender', () => {
Fantom.unstable_produceFramesForDuration(500);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_opacityAnimation?.stop();
});
@@ -394,7 +394,7 @@ test('animate layout props and rerender in many components', () => {
_setWidth(200);
});
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_heightAnimation?.stop();
});
@@ -469,7 +469,7 @@ test('animate width, height and opacity at once', () => {
Fantom.unstable_produceFramesForDuration(100);
// TODO: this shouldn't be neccessary since animation should be stopped after duration
// TODO: this shouldn't be necessary since animation should be stopped after duration
Fantom.runTask(() => {
_parallelAnimation?.stop();
});
@@ -7,9 +7,10 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<22737380b5e4280ce3563ac009164f56>>
* @generated SignedSource<<a389884f917160390547bb8b67479473>>
*
* This file was sync'd from the facebook/react repository.
* This file is no longer sync'd from the facebook/react repository.
* The version compatibility check is removed. Use at your own risk.
*/
"use strict";
@@ -7,9 +7,10 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<232209f5a157745637191195f25907c7>>
* @generated SignedSource<<7e40a1e09e8b18f5fde8d400a830ed9a>>
*
* This file was sync'd from the facebook/react repository.
* This file is no longer sync'd from the facebook/react repository.
* The version compatibility check is removed. Use at your own risk.
*/
"use strict";
@@ -7,9 +7,10 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9b111e8265a6b1d86607277dbe91d200>>
* @generated SignedSource<<3db8390cde71bdefbc682552931ec739>>
*
* This file was sync'd from the facebook/react repository.
* This file is no longer sync'd from the facebook/react repository.
* The version compatibility check is removed. Use at your own risk.
*/
"use strict";
@@ -7,9 +7,10 @@
* @noformat
* @nolint
* @flow
* @generated SignedSource<<e2c46705ed927302dbe9332dafba459d>>
* @generated SignedSource<<7a063365bcf9d96b1cd8714d309e5b92>>
*
* This file was sync'd from the facebook/react repository.
* This file is no longer sync'd from the facebook/react repository.
* The version compatibility check is removed. Use at your own risk.
*/
'use strict';
@@ -356,7 +356,7 @@ TEST_F(LayoutTest, overflowInsetTransformScaleTest) {
auto layoutMetricsABC = viewShadowNodeABC_->getLayoutMetrics();
// The frame of box ABC won't actually scale up. The transform matrix is
// purely cosmatic and should apply later in mounting phase.
// purely cosmetic and should apply later in mounting phase.
EXPECT_EQ(layoutMetricsABC.frame.size.width, 110);
EXPECT_EQ(layoutMetricsABC.frame.size.height, 20);
@@ -728,7 +728,7 @@ TEST_P(RuntimeSchedulerTest, normalTaskYieldsToSynchronousAccessAndResumes) {
// the test would be flaky in a multithreaded environment.
stubQueue_->waitForTasks(2);
// Normal priority task immediatelly yield in favour of the sync task.
// Normal priority task immediately yield in favour of the sync task.
stubQueue_->tick();
EXPECT_EQ(stubQueue_->size(), 1);
@@ -23,7 +23,7 @@ function PointerEventPointerCancelTouchTestCase(
) {
const {harness} = props;
const testPointerEvent = harness.useAsyncTest('pointercancel event recieved');
const testPointerEvent = harness.useAsyncTest('pointercancel event received');
const pointerDownEventRef = useRef<PointerEvent | null>(null);
const pointerCancelEventRef = useRef<PointerEvent | null>(null);
@@ -40,7 +40,7 @@ function PointerEventPointerCancelTouchTestCase(
testPointerEvent.step(({assert_equals, assert_not_equals}) => {
const pointerDownEvent = pointerDownEventRef.current;
assert_not_equals(pointerDownEvent, null, 'pointerdown was recieved: ');
assert_not_equals(pointerDownEvent, null, 'pointerdown was received: ');
if (pointerDownEvent != null) {
assert_equals(
event.nativeEvent.pointerId,
@@ -87,7 +87,7 @@ function PointerEventPointerCancelTouchTestCase(
assert_not_equals(
pointerCancelEvent,
null,
'pointercancel was recieved: ',
'pointercancel was received: ',
);
if (pointerCancelEvent != null) {
assert_equals(
@@ -118,7 +118,7 @@ function PointerEventPointerCancelTouchTestCase(
assert_not_equals(
pointerCancelEvent,
null,
'pointercancel was recieved: ',
'pointercancel was received: ',
);
if (pointerCancelEvent != null) {
assert_equals(
@@ -78,7 +78,7 @@ function PointerEventPointerOverOutTestCase(
assert_equals(
innerOverRef.current,
innerOutRef.current,
'pointerover is recieved before pointerout',
'pointerover is received before pointerout',
);
switch (innerOverRef.current) {
case 0: {
@@ -144,7 +144,7 @@ function PointerEventPointerOverOutTestCase(
assert_equals(
outerOwnOverRef.current,
outerOwnOutRef.current,
'outer: pointerover is recieved before pointerout',
'outer: pointerover is received before pointerout',
);
outerOwnOverRef.current++;
} else {
@@ -167,7 +167,7 @@ function PointerEventPointerOverOutTestCase(
assert_equals(
outerOwnOverRef.current,
outerOwnOutRef.current + 1,
'outer: pointerout is recieved after pointerover',
'outer: pointerout is received after pointerover',
);
if (outerOwnOutRef.current === 1) {
assert_equals(innerOutRef.current, 2, 'inner should be done now');
@@ -178,7 +178,7 @@ function PointerEventPointerOverOutTestCase(
assert_equals(
outerOutRef.current - outerOwnOutRef.current,
innerOutRef.current - 1,
'pointerout: should only recieve this via bubbling',
'pointerout: should only receive this via bubbling',
);
}
});
@@ -936,7 +936,7 @@ exports.examples = [
{
title: 'Multiple Image Source using the `srcSet` prop.',
description:
('A list of comma seperated uris along with scale are provided in `srcSet`.' +
('A list of comma separated uris along with scale are provided in `srcSet`.' +
'An appropriate value will be used based on the scale of the device.': string),
render: function (): React.Node {
return (