From 5197b43d6e8fc5007cdb673f6ecb32d8368468d5 Mon Sep 17 00:00:00 2001 From: Jay Pokale <99467494+JayPokale@users.noreply.github.com> Date: Sat, 5 Dec 2026 20:22:24 +0530 Subject: [PATCH] Fix typos in comments --- .../react-native/React/Fabric/Utils/RCTReactTaggedView.h | 2 +- packages/react-native/React/Modules/RCTUIManager.h | 2 +- packages/react-native/React/Views/RCTLayout.m | 2 +- packages/react-native/React/Views/RCTViewManager.h | 2 +- .../main/java/com/facebook/react/uimanager/events/Event.kt | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/react-native/React/Fabric/Utils/RCTReactTaggedView.h b/packages/react-native/React/Fabric/Utils/RCTReactTaggedView.h index 78d4714d386a..e2b32a69590e 100644 --- a/packages/react-native/React/Fabric/Utils/RCTReactTaggedView.h +++ b/packages/react-native/React/Fabric/Utils/RCTReactTaggedView.h @@ -12,7 +12,7 @@ NS_ASSUME_NONNULL_BEGIN /** * Lightweight wrapper class around a UIView with a react tag which registers a * constant react tag at initialization time for a stable hash and provides the - * udnerlying view to a caller if that underlying view's react tag has not + * underlying view to a caller if that underlying view's react tag has not * changed from the one provided at initialization time (i.e. recycled). */ @interface RCTReactTaggedView : NSObject { diff --git a/packages/react-native/React/Modules/RCTUIManager.h b/packages/react-native/React/Modules/RCTUIManager.h index cd882d9449e3..1750c8c5db19 100644 --- a/packages/react-native/React/Modules/RCTUIManager.h +++ b/packages/react-native/React/Modules/RCTUIManager.h @@ -57,7 +57,7 @@ RCT_EXTERN NSString *const RCTUIManagerWillUpdateViewsDueToContentSizeMultiplier /** * Set the available size (`availableSize` property) for a root view. * This might be used in response to changes in external layout constraints. - * This value will be directly trasmitted to layout engine and defines how big viewport is; + * This value will be directly transmitted to layout engine and defines how big viewport is; * this value does not affect root node size style properties. * Can be considered as something similar to `setSize:forView:` but applicable only for root view. */ diff --git a/packages/react-native/React/Views/RCTLayout.m b/packages/react-native/React/Views/RCTLayout.m index 356866a420c6..e11ee4c0135c 100644 --- a/packages/react-native/React/Views/RCTLayout.m +++ b/packages/react-native/React/Views/RCTLayout.m @@ -52,7 +52,7 @@ RCTLayoutMetrics RCTLayoutMetricsFromYogaNode(YGNodeRef yogaNode) * Yoga and CoreGraphics have different opinions about how "infinity" value * should be represented. * Yoga uses `NAN` which requires additional effort to compare all those values, - * whereas GoreGraphics uses `GFLOAT_MAX` which can be easyly compared with + * whereas GoreGraphics uses `GFLOAT_MAX` which can be easily compared with * standard `==` operator. */ diff --git a/packages/react-native/React/Views/RCTViewManager.h b/packages/react-native/React/Views/RCTViewManager.h index 014d30d888d3..eba3bd06fc6d 100644 --- a/packages/react-native/React/Views/RCTViewManager.h +++ b/packages/react-native/React/Views/RCTViewManager.h @@ -117,7 +117,7 @@ typedef void (^RCTViewManagerUIBlock)(RCTUIManager *uiManager, NSDictionary> { /** * NOTE: This is a transitional method that allows accessing event data from outside the - * sublcasses, but inside the package. + * subclasses, but inside the package. */ internal fun internal_getEventData(): WritableMap? = getEventData() @@ -164,7 +164,7 @@ public abstract class Event> { /** * NOTE: This is a transitional method that allows accessing event category from outside the - * sublcasses, but inside the package. + * subclasses, but inside the package. */ internal fun internal_getEventCategory(): Int = getEventCategory() @@ -172,7 +172,7 @@ public abstract class Event> { /** * NOTE: This is a transitional method that allows accessing event category from outside the - * sublcasses, but inside the package. + * subclasses, but inside the package. */ internal fun internal_experimental_isSynchronous(): Boolean = experimental_isSynchronous()