()
| 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 | |
| 150 | Html.propTypes = { |
nothing calls this directly
no test coverage detected