export default function App() {
const { width } = useWindowDimensions();
return (
<RenderHtml
contentWidth={width}
source={{
html: '<p>This is a note <span style="display: none">with hidden content</span></p>'
}}
/>
);
}
or even with a custom component, using the customHTMLElementModels prop.
Is it supposed to be like this? I didn't find a list of supported CSS properties to check
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
When adding a classesStyles that aim at hidding (
display: none
) when a tag has a particular class, it doesn't work, according to this simple sample:However,
color: red
works fineReact Native Information
RNRH Version
6.3.4
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
https://snack.expo.dev/@qlerebours/rnrhtml-template
Additional Notes
I also tried multiple things like
or even with a custom component, using the
customHTMLElementModels
prop. Is it supposed to be like this? I didn't find a list of supported CSS properties to check