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
This commit is contained in:
Kevin Gozali authored and Facebook Github Bot committed 2019-04-11 14:23:13 -07:00
1 parent e3d3b2cab9
commit 65033d7078
1 file changed
+1 -1
+1 -1
View File
@@ -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),