Skip to content

Commit cf94070

Browse files
cortinicofacebook-github-bot
authored andcommitted
Unbreak build_android due to broken StateReconciliationTest.cpp (#51161)
Summary: Pull Request resolved: #51161 This unbreaks the CI after D74245228 Changelog: [Internal] [Changed] - Reviewed By: javache Differential Revision: D74324800 fbshipit-source-id: b89147f4f57b5d94fd8ae1549ef18ef2deb97c5b
1 parent 130fb7f commit cf94070

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/renderer/mounting/tests/StateReconciliationTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ TEST_F(StateReconciliationTest, testCloneslessStateReconciliationDoesntClone) {
277277

278278
// ==== Creact clones tree ====
279279

280-
ShadowNode::Unshared newlyClonedShadowNode;
280+
std::shared_ptr<ShadowNode> newlyClonedShadowNode;
281281

282282
auto rootShadowNodeClonedFromReact = rootShadowNode2->cloneTree(
283283
scrollViewFamily, [&](const ShadowNode& oldShadowNode) {
@@ -369,7 +369,7 @@ TEST_F(StateReconciliationTest, testStateReconciliationScrollViewChildUpdate) {
369369

370370
// ==== React starts cloning but does not commit ====
371371

372-
ShadowNode::Unshared newlyClonedViewShadowNode;
372+
std::shared_ptr<ShadowNode> newlyClonedViewShadowNode;
373373

374374
auto rootShadowNodeClonedFromReact = initialRootShadowNode->cloneTree(
375375
initialChildViewShadowNode->getFamily(),

0 commit comments

Comments
 (0)