From f6f7d0484c7e561cd6583844f75ba6004acbe744 Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 10 Apr 2018 12:46:17 -0700 Subject: [PATCH] Fixed typo in RCTShadowView Summary: Trivial. Reviewed By: PeteTheHeat Differential Revision: D7503382 fbshipit-source-id: 0c553553bcde5c2f32bace0fa047aee6a106619b --- React/Views/RCTShadowView.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/React/Views/RCTShadowView.m b/React/Views/RCTShadowView.m index 45711765390..84ad1c908c3 100644 --- a/React/Views/RCTShadowView.m +++ b/React/Views/RCTShadowView.m @@ -340,10 +340,10 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT], - (CGSize)sizeThatFitsMinimumSize:(CGSize)minimumSize maximumSize:(CGSize)maximumSize { - YGNodeRef clonnedYogaNode = YGNodeClone(self.yogaNode); + YGNodeRef clonedYogaNode = YGNodeClone(self.yogaNode); YGNodeRef constraintYogaNode = YGNodeNewWithConfig([[self class] yogaConfig]); - YGNodeInsertChild(constraintYogaNode, clonnedYogaNode, 0); + YGNodeInsertChild(constraintYogaNode, clonedYogaNode, 0); YGNodeStyleSetMinWidth(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.width)); YGNodeStyleSetMinHeight(constraintYogaNode, RCTYogaFloatFromCoreGraphicsFloat(minimumSize.height)); @@ -362,9 +362,9 @@ static void RCTProcessMetaPropsBorder(const YGValue metaProps[META_PROP_COUNT], RCTCoreGraphicsFloatFromYogaFloat(YGNodeLayoutGetHeight(constraintYogaNode)), }; - YGNodeRemoveChild(constraintYogaNode, clonnedYogaNode); + YGNodeRemoveChild(constraintYogaNode, clonedYogaNode); YGNodeFree(constraintYogaNode); - YGNodeFree(clonnedYogaNode); + YGNodeFree(clonedYogaNode); return measuredSize; }