Closed VitaliyGaliy closed 2 years ago
@VitaliyGaliy Thanks for the report! The default content model for input is "none", because interactive elements are not handled by default. You need to provide an element model with block content model; I agree this could be documented in the FAQ!
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
Can not use an input HTML element.
React Native Information
RNRH Version
0.64.2
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
` const source = { html:
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Quo minima quis accusamus rerum dolorum!
};const customHTMLElementModels = { 'input': HTMLElementModel.fromCustomModel({ tagName: 'input', mixedUAStyles: { width: 50, height: 10, backgroundColor: 'blue' }, contentModel: HTMLContentModel.block }), };
const App = () => {
const { width } = useWindowDimensions(); return ( <RenderHtml contentWidth={width} source={source} customHTMLElementModels={customHTMLElementModels} /> ); }; `
Additional Notes
No response