MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / insertBefore

Method insertBefore

src/components/View/RNView.ts:230–236  ·  view source on GitHub ↗
(child: QWidget<any>, beforeChild: QWidget<any>)

Source from the content-addressed store, hash-verified

228 setViewProps(this, newProps, oldProps);
229 }
230 insertBefore(child: QWidget<any>, beforeChild: QWidget<any>): void {
231 if (!this.layout() || child instanceof QDialog) {
232 !this.layout() && console.warn("parent has no layout to insert child before another child");
233 return;
234 }
235 (this.layout() as FlexLayout).insertChildBefore(child, beforeChild);
236 }
237 static tagName = "view";
238 appendInitialChild(child: QWidget<any>): void {
239 this.appendChild(child);

Callers

nothing calls this directly

Calls 1

layoutMethod · 0.95

Tested by

no test coverage detected