react-native-render-html icon indicating copy to clipboard operation
react-native-render-html copied to clipboard

Android: Not display any content or paragraph HTML.

Open sseyha opened this issue 9 years ago • 3 comments

It's working fine with iOS, but it's not working on Android. All the paragraph display in White (Blank) but image appear in the paragraph. Could anyone give an advise please???

sseyha avatar Oct 27 '17 08:10 sseyha

Please show us the HTML you're trying to render, and the props you're using. You should also start the demo on your android and check if it works.

Exilz avatar Oct 27 '17 09:10 Exilz

Thank for fast response. Here is my scenario:

"moment": "^2.19.1", "native-base": "^2.3.3", "react": "^16.0.0", "react-native": "^0.49.3", "react-native-render-html": "^3.5.0-rc.3",

==== I find out it problem is about Font-Color. After i render the HTML and set backgroundColor into Red because font-color become into White Color. That's why could not display those tag. However, i could not customize the font color as well. Any advise???

sseyha avatar Oct 28 '17 00:10 sseyha

All text in tag

become in White Color in Android device. That's why it won't display properly as iOS.

Below what i have customize the font color: <HTML html={item.content} tagsStyles={{p:{color:'#555'}}} imagesMaxWidth={width-40} />

sseyha avatar Nov 06 '17 03:11 sseyha