MCPcopy
hub / github.com/facebook/react / addSubview

Method addSubview

packages/react-devtools-timeline/src/view-base/View.js:158–164  ·  view source on GitHub ↗

* Appends `view` to the list of this view's `subviews`.

(view: View)

Source from the content-addressed store, hash-verified

156 * Appends `view` to the list of this view's `subviews`.
157 */
158 addSubview(view: View) {
159 if (this.subviews.includes(view)) {
160 return;
161 }
162 this.subviews.push(view);
163 view.superview = this;
164 }
165
166 /**
167 * Breaks the subview-superview relationship between `view` and this view, if

Callers 6

CanvasPage.jsFile · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected