react-native-render-html: helpwanted: style.myStyle not working ?
below: ‘item’ is a json object.
<HTML html={item.title.render} style={style.myStyle} />
The title shows up but I can’t style the text…how can I set a style sheet on the text that’s coming off the object with your package ?
And so that we’re clear, yes I read > https://github.com/archriss/react-native-render-html/issues/145
If I understand your package properly, this package only understands embedded css within the HTML and then allows me style it from there. That’s great! However, what happens if i have an object like what I’m showing above where it’s the title of a post (wordpress) and there is no embedded css that it’s pulling ? So should I be able to style the text from the object and not the direct html ?
Thanks.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15
Jesus. I’m an idiot some days …
My import statement was
import HE from 'he';
and it should have beenimport he from 'he';
Good lord!
Problem solved. Issue closed. And now my app works.
Now I just gotta clean up the visuals a little and we’re good to go and I can actually publish this thing as a working demo but that’s a whole different thread.
Yeah, you’re right the “NO ERRORS” thing is way to inconspicuous. That needs to be a radio button like everything else on that bottom row. Never would have seen that or clicked on it. Not exactly the easiest thing to find.