From 48e9297e20121a05b92a88af81e3140e9d46c130 Mon Sep 17 00:00:00 2001 From: Tomasz Zawadzki Date: Tue, 26 May 2026 14:18:33 +0200 Subject: [PATCH] fix: replace removed `ShadowNode::Shared` with `std::shared_ptr` Co-Authored-By: Claude Opus 4.7 (1M context) --- apple/MarkdownTextInputDecoratorShadowNode.h | 4 ++-- apple/MarkdownTextInputDecoratorShadowNode.mm | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apple/MarkdownTextInputDecoratorShadowNode.h b/apple/MarkdownTextInputDecoratorShadowNode.h index cbfe603d..c2f19b41 100644 --- a/apple/MarkdownTextInputDecoratorShadowNode.h +++ b/apple/MarkdownTextInputDecoratorShadowNode.h @@ -26,9 +26,9 @@ class JSI_EXPORT MarkdownTextInputDecoratorShadowNode final MarkdownTextInputDecoratorShadowNode(ShadowNode const &sourceShadowNode, ShadowNodeFragment const &fragment); - void appendChild(const ShadowNode::Shared &child) override; + void appendChild(const std::shared_ptr &child) override; void replaceChild(const ShadowNode &oldChild, - const ShadowNode::Shared &newChild, + const std::shared_ptr &newChild, size_t suggestedIndex = SIZE_MAX) override; void layout(LayoutContext layoutContext) override; Size diff --git a/apple/MarkdownTextInputDecoratorShadowNode.mm b/apple/MarkdownTextInputDecoratorShadowNode.mm index 8dae7598..43278241 100644 --- a/apple/MarkdownTextInputDecoratorShadowNode.mm +++ b/apple/MarkdownTextInputDecoratorShadowNode.mm @@ -93,14 +93,14 @@ } void MarkdownTextInputDecoratorShadowNode::appendChild( - const ShadowNode::Shared &child) { + const std::shared_ptr &child) { YogaLayoutableShadowNode::appendChild(child); overwriteMeasureCallbackConnector(); } void MarkdownTextInputDecoratorShadowNode::replaceChild( - const ShadowNode &oldChild, const ShadowNode::Shared &newChild, + const ShadowNode &oldChild, const std::shared_ptr &newChild, size_t suggestedIndex) { YogaLayoutableShadowNode::replaceChild(oldChild, newChild, suggestedIndex);