MCPcopy Create free account
hub / github.com/shoutem/ui / constructor

Method constructor

html/services/HtmlParser.js:63–69  ·  view source on GitHub ↗

* Set a tree basic nodes. * @param rootElementTag {String} The root element tag is safety wrapper around a parsed HTML * because the HTML can have multiple root elements which is not supported by the RN.

(rootTag = 'div')

Source from the content-addressed store, hash-verified

61 * because the HTML can have multiple root elements which is not supported by the RN.
62 */
63 constructor(rootTag = 'div') {
64 this.rootNode = createElementNode(rootTag);
65 this.activeNode = this.rootNode;
66 this.openTag = this.openTag.bind(this);
67 this.appendText = this.appendText.bind(this);
68 this.closeTag = this.closeTag.bind(this);
69 }
70
71 /**
72 * Create new element, add it to active node, and set it as active.

Callers

nothing calls this directly

Calls 1

createElementNodeFunction · 0.85

Tested by

no test coverage detected