Open Noitidart opened 6 years ago
Maybe you can wrap a div around your body and style divs?
return <HTMLView value={`<div>${body}</div>`} stylesheet={htmlStyles} />
const htmlStyles = StyleSheet.create({
div: textStyle,
p: textStyle
})
Oh yes true I can add a wrap. Is there no other way?
Sometimes my content is wrapped in a
<p>
other times its not. In the times that its plain text, how to style the body?I tried using
html
andbody
but it doesnt work.My code: