From 393bf8aaad347a586201abde21039f0febac4e5e Mon Sep 17 00:00:00 2001 From: Valentin Shergin Date: Tue, 5 Mar 2019 14:01:37 -0800 Subject: [PATCH] Fabric: Fixed a bug in ShadowViewMutation constructor Summary: Clowntown. This fixes a recent regression happened becasuse wrong order of parameters in ShadowViewMutation constructor. Reviewed By: JoshuaGross Differential Revision: D14329164 fbshipit-source-id: 5a0dc04b889fb3357050b951d56c3e436dbeefb1 --- ReactCommon/fabric/mounting/ShadowViewMutation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/mounting/ShadowViewMutation.cpp b/ReactCommon/fabric/mounting/ShadowViewMutation.cpp index 3cd25a4ca..e73e05cee 100644 --- a/ReactCommon/fabric/mounting/ShadowViewMutation.cpp +++ b/ReactCommon/fabric/mounting/ShadowViewMutation.cpp @@ -14,8 +14,8 @@ ShadowViewMutation ShadowViewMutation::CreateMutation(ShadowView shadowView) { return { /* .type = */ Create, /* .parentShadowView = */ {}, - /* .newChildShadowView = */ shadowView, /* .oldChildShadowView = */ {}, + /* .newChildShadowView = */ shadowView, /* .index = */ -1, }; }