mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
f1b49f7df8
commit
43a91d03eb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user