Transforms the raw HTML to the React Native components tree. Accepts these props:
bodyA raw HTML.renderElement(element, style, defaultRenderElement)A function to override defaultrenderElement. If this function returnsundefinedthe defaultrenderElementwill be used to render element.styleA Html style.
Register an element with the static Html.registerElement(elementTag, Component) method.
Registered elements will be handled with the default renderElement.
Components in the html/components folder are base implementation of common HTML elements that contain specific logic.
Wrap those components with your own element implementation, and reduce the element attributes to the component props.
For example, there are different ways to implement the HTML image gallery but most the most cases you can use the same React Native implementation.
Elements are React Native components used to render a parsed element. The Element will by default receives these props:
elementAn object describing element, containstag,attributes,childElements,parentprops.styleThe Shoutem theme style passed in the Html instance style.renderElementA function used to render an element with registered element component.