diff --git a/ReactCommon/fabric/uimanager/ShadowTree.cpp b/ReactCommon/fabric/uimanager/ShadowTree.cpp index 1968bc9af6a..6e5e722a424 100644 --- a/ReactCommon/fabric/uimanager/ShadowTree.cpp +++ b/ReactCommon/fabric/uimanager/ShadowTree.cpp @@ -94,7 +94,9 @@ ShadowTree::ShadowTree( .props = props, .eventEmitter = noopEventEmitter, }, - nullptr); + [](const ShadowNode &shadowNode, const ShadowNodeFragment &fragment) { + return std::make_shared(shadowNode, fragment); + }); } ShadowTree::~ShadowTree() {