diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp index 08f15ec203ca8a..12c8ebd1255fb0 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.cpp @@ -251,7 +251,7 @@ void YogaLayoutableShadowNode::appendChild( void YogaLayoutableShadowNode::replaceChild( ShadowNode const &oldChild, ShadowNode::Shared const &newChild, - size_t suggestedIndex) { + int32_t suggestedIndex) { LayoutableShadowNode::replaceChild(oldChild, newChild, suggestedIndex); ensureUnsealed(); diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h index 9456b0ccc0b1a7..d59e515487b59f 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/YogaLayoutableShadowNode.h @@ -55,7 +55,7 @@ class YogaLayoutableShadowNode : public LayoutableShadowNode { void replaceChild( ShadowNode const &oldChild, ShadowNode::Shared const &newChild, - size_t suggestedIndex = -1) override; + int32_t suggestedIndex = -1) override; void updateYogaChildren(); diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp index 79f294bef7647a..b92ae8c68a6316 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/YogaStylableProps.cpp @@ -105,6 +105,7 @@ void YogaStylableProps::setProp( const char *propName, RawValue const &value) { static const auto ygDefaults = YGStyle{}; + static const auto defaults = YogaStylableProps{}; Props::setProp(context, hash, propName, value); @@ -133,8 +134,6 @@ void YogaStylableProps::setProp( REBUILD_FIELD_YG_EDGES(padding, "padding", ""); REBUILD_FIELD_YG_EDGES(border, "border", "Width"); - static const auto defaults = YogaStylableProps{}; - // Aliases RAW_SET_PROP_SWITCH_CASE(inset, "inset"); RAW_SET_PROP_SWITCH_CASE(insetBlock, "insetBlock"); diff --git a/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.cpp b/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.cpp index f8782c879f0c0a..8c6497d728aed1 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.cpp +++ b/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.cpp @@ -236,7 +236,7 @@ void ShadowNode::appendChild(const ShadowNode::Shared &child) { void ShadowNode::replaceChild( ShadowNode const &oldChild, ShadowNode::Shared const &newChild, - size_t suggestedIndex) { + int32_t suggestedIndex) { ensureUnsealed(); cloneChildrenIfShared(); diff --git a/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.h b/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.h index 4e428b25997985..6cb054ea39e71b 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.h +++ b/packages/react-native/ReactCommon/react/renderer/core/ShadowNode.h @@ -168,7 +168,7 @@ class ShadowNode : public Sealable, virtual void replaceChild( ShadowNode const &oldChild, Shared const &newChild, - size_t suggestedIndex = -1); + int32_t suggestedIndex = -1); /* * Performs all side effects associated with mounting/unmounting in one place.