From 65033d7078654bae2a87e4791dbb725110ae6bad Mon Sep 17 00:00:00 2001 From: Kevin Gozali Date: Thu, 11 Apr 2019 14:16:50 -0700 Subject: [PATCH] Fabric: preserve original props when using fallback component Summary: This fixes a minor bug where the original props (like for styling) got dropped when the system falls back to UnimplementedView. Reviewed By: mdvacca Differential Revision: D14898906 fbshipit-source-id: 4a07952ceac66e491a5c0bc1ffd99f21438cda31 --- ReactCommon/fabric/uimanager/UIManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactCommon/fabric/uimanager/UIManager.cpp b/ReactCommon/fabric/uimanager/UIManager.cpp index f2ed31105ad..3b98978cd86 100644 --- a/ReactCommon/fabric/uimanager/UIManager.cpp +++ b/ReactCommon/fabric/uimanager/UIManager.cpp @@ -32,7 +32,7 @@ SharedShadowNode UIManager::createNode( fallbackDescriptor->getComponentHandle() == componentDescriptor.getComponentHandle() ? componentDescriptor.cloneProps( - nullptr, RawProps(folly::dynamic::object("name", name))) + props, RawProps(folly::dynamic::object("name", name))) : props, /* .eventEmitter = */ componentDescriptor.createEventEmitter(std::move(eventTarget), tag),