mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
e3d3b2cab9
commit
65033d7078
1 file changed
+1
-1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user