Extend getInspectorDataForInstance to return props

Summary:
This diff extends the FabricUIManager.getInspectorDataForInstance to return the props of the React Native component associated to the view passed as a parameter.

changelog: [internal] internal

Reviewed By: sammy-SC

Differential Revision: D30095406

fbshipit-source-id: 50fdba6636a1f5042dbc113e341c3cb2534a1b04
This commit is contained in:
David Vacca
2021-08-04 11:37:09 -07:00
committed by Facebook GitHub Bot
parent f1b49f7df8
commit 43a91d03eb
3 changed files with 6 additions and 1 deletions
@@ -251,6 +251,7 @@ Binding::getInspectorDataForInstance(
result["lineNumber"] = data.lineNumber;
result["columnNumber"] = data.columnNumber;
result["selectedIndex"] = data.selectedIndex;
result["props"] = data.props;
auto hierarchy = folly::dynamic::array();
for (auto hierarchyItem : data.hierarchy) {
hierarchy.push_back(hierarchyItem);