Skip to content

Commit 91c34a9

Browse files
committed
made the RN component show up different on the d3 tree
1 parent a0fb937 commit 91c34a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/bottom/BottomTabs.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ class BottomTabs extends Component<BottomTabsPropsInt, StateInt> {
137137
tree.children.push(
138138
this.generateComponentTree(child.childComponentId, components)
139139
);
140+
} else if (child.componentName.slice(0, 2) == 'RN') {
141+
let str = { Type: 'React Native Component' };
142+
tree.children.push({
143+
name: child.componentName,
144+
attributes: str,
145+
children: []
146+
});
140147
} else {
141148
let str = { Type: 'HTML Element' };
142149
tree.children.push({

0 commit comments

Comments
 (0)