3

I am using 'react-native-render-html' to render html from my admin panel app but on the react native application on my devices text is bold and italic in Android device and is not on iPhone. What could be the reason ?

This is how it looks in Android, first 2 list items are bold and italic respectively

and this is how it looks on iPhone, no bold and no italic

Following is the code i have used

<HTML
        html={story.item.summary}
        baseFontStyle={styles.summaryText}
        containerStyle={styles.summaryHTMLContainer}
      />

This is what I get with console.log(story.item.summary)

  • Please add code sample you are using to solve your task. – Alex K. Dec 25 '20 at 13:48
  • Alex i have edited my question with some more details – Muhammad Aown Dec 25 '20 at 13:57
  • [Please do not upload images of code/errors when asking a question.](//meta.stackoverflow.com/q/285551) – Alex K. Dec 25 '20 at 13:58
  • 1
    Thank you but this is my first ever question on any platform so i was not familiar with these things. I am going to edit it again – Muhammad Aown Dec 25 '20 at 14:03
  • @MuhammadAown To help you out, I will need to be able to fully reproduce your issue on my own computer. I need the version of the libraries you are using (react-native and react-native-render-html) and a minimal reproducible example, including the HTML snippet you are passing, and baseFontStyles. First guess would be an issue with fonts, unrelated to this library. Could you reproduce the problem without react-native-render-html? – Jules Sam. Randolph Jan 06 '21 at 16:05

0 Answers0