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

Method render

html/Html.js:124–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122 }
123
124 render() {
125 const { style, body } = this.props;
126 const { htmlTree } = this.state;
127
128 if (!body) {
129 return null;
130 }
131
132 if (!htmlTree) {
133 // Either still processing the Html or
134 // waiting for layout animations to complete
135 return (
136 <View styleName="md-gutter">
137 <Spinner styleName="sm-gutter" />
138 </View>
139 );
140 }
141
142 const htmlRootElement = htmlTree.getRootNode();
143
144 return (
145 <View style={style.container}>{this.renderElement(htmlRootElement)}</View>
146 );
147 }
148}
149
150Html.propTypes = {

Callers

nothing calls this directly

Calls 2

renderElementMethod · 0.95
getRootNodeMethod · 0.80

Tested by

no test coverage detected