diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h index c0ca023e001b38..a8dcacbd12fb72 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h +++ b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedGlobalRef.h @@ -33,9 +33,10 @@ namespace facebook::yoga::vanillajni { * * This class is very explicit in its behavior, and it does not allow to perform * unexpected conversions or unexpected ownership transfer. In practice, this - * class acts as a unique pointer where the underying JNI reference can have one - * and just one owner. Transferring ownership is allowed but it is an explicit - * operation (implemented via move semantics and also via explicitly API calls). + * class acts as a unique pointer where the underlying JNI reference can have + * one and just one owner. Transferring ownership is allowed but it is an + * explicit operation (implemented via move semantics and also via explicitly + * API calls). * * Note that this class doesn't receive an explicit JNIEnv at construction time. * At destruction time it uses vanillajni::getCurrentEnv() to retrieve the diff --git a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h index fd49e8320337ba..75af267329819b 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h +++ b/packages/react-native/ReactAndroid/src/main/jni/first-party/yogajni/jni/ScopedLocalRef.h @@ -35,9 +35,10 @@ namespace facebook::yoga::vanillajni { * * This class is very explicit in its behavior, and it does not allow to perform * unexpected conversions or unexpected ownership transfer. In practice, this - * class acts as a unique pointer where the underying JNI reference can have one - * and just one owner. Transferring ownership is allowed but it is an explicit - * operation (implemented via move semantics and also via explicitly API calls). + * class acts as a unique pointer where the underlying JNI reference can have + * one and just one owner. Transferring ownership is allowed but it is an + * explicit operation (implemented via move semantics and also via explicitly + * API calls). * * As with standard JNI local references it is not a valid operation to keep a * reference around between different native method calls. diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h b/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h index 7c1a8f297d22a8..12f6e204ada404 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGConfig.h @@ -25,7 +25,7 @@ typedef const struct YGNode* YGNodeConstRef; typedef struct YGConfig* YGConfigRef; /** - * Handle to an immutable Yoga configruation. + * Handle to an immutable Yoga configuration. */ typedef const struct YGConfig* YGConfigConstRef; @@ -60,7 +60,7 @@ YG_EXPORT void YGConfigSetUseWebDefaults(YGConfigRef config, bool enabled); YG_EXPORT bool YGConfigGetUseWebDefaults(YGConfigConstRef config); /** - * Yoga will by deafult round final layout positions and dimensions to the + * Yoga will by default round final layout positions and dimensions to the * nearst point. `pointScaleFactor` controls the density of the grid used for * layout rounding (e.g. to round to the closest display pixel). * @@ -79,11 +79,11 @@ YG_EXPORT float YGConfigGetPointScaleFactor(YGConfigConstRef config); * Configures how Yoga balances W3C conformance vs compatibility with layouts * created against earlier versions of Yoga. * - * By deafult Yoga will prioritize W3C conformance. `Errata` may be set to ask + * By default Yoga will prioritize W3C conformance. `Errata` may be set to ask * Yoga to produce specific incorrect behaviors. E.g. `YGConfigSetErrata(config, * YGErrataStretchFlexBasis)`. * - * YGErrata is a bitmask, and multiple errata may be set at once. Predfined + * YGErrata is a bitmask, and multiple errata may be set at once. Predefined * constants exist for convenience: * 1. YGErrataNone: No errata * 2. YGErrataClassic: Match layout behaviors of Yoga 1.x diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGNode.h b/packages/react-native/ReactCommon/yoga/yoga/YGNode.h index 448000ebd714ab..de797b82c3edf2 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGNode.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGNode.h @@ -56,7 +56,7 @@ YG_EXPORT void YGNodeFreeRecursive(YGNodeRef node); /** * Frees the Yoga node without disconnecting it from its owner or children. * Allows garbage collecting Yoga nodes in parallel when the entire tree is - * unrechable. + * unreachable. */ YG_EXPORT void YGNodeFinalize(YGNodeRef node); @@ -186,7 +186,7 @@ typedef struct YGSize { } YGSize; /** - * Returns the computed dimensions of the node, following the contraints of + * Returns the computed dimensions of the node, following the constraints of * `widthMode` and `heightMode`: * * YGMeasureModeUndefined: The parent has not imposed any constraint on the @@ -199,7 +199,7 @@ typedef struct YGSize { * child. The child is going to be given those bounds regardless of how big it * wants to be. * - * @returns the size of the leaf node, measured under the given contraints. + * @returns the size of the leaf node, measured under the given constraints. */ typedef YGSize (*YGMeasureFunc)( YGNodeConstRef node, @@ -221,7 +221,7 @@ YG_EXPORT void YGNodeSetMeasureFunc(YGNodeRef node, YGMeasureFunc measureFunc); YG_EXPORT bool YGNodeHasMeasureFunc(YGNodeConstRef node); /** - * @returns a defined offet to baseline (ascent). + * @returns a defined offset to baseline (ascent). */ typedef float (*YGBaselineFunc)(YGNodeConstRef node, float width, float height);