Skip to content

Commit 65033d7

Browse files
fkgozalifacebook-github-bot
authored andcommitted
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
1 parent e3d3b2c commit 65033d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/fabric/uimanager/UIManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ SharedShadowNode UIManager::createNode(
3232
fallbackDescriptor->getComponentHandle() ==
3333
componentDescriptor.getComponentHandle()
3434
? componentDescriptor.cloneProps(
35-
nullptr, RawProps(folly::dynamic::object("name", name)))
35+
props, RawProps(folly::dynamic::object("name", name)))
3636
: props,
3737
/* .eventEmitter = */
3838
componentDescriptor.createEventEmitter(std::move(eventTarget), tag),

0 commit comments

Comments
 (0)